Updated stdlib. Prefer file::open. Fix to slice assign with distinct types.

This commit is contained in:
Christoffer Lerno
2023-03-12 00:22:17 +01:00
parent 2607062cb6
commit 4ffeada3c7
12 changed files with 54 additions and 80 deletions

View File

@@ -158,7 +158,7 @@ fn String[] String.split(String s, String needle, usz max = 0, Allocator* using
* @param [in] needle
* @param max "Max number of elements, 0 means no limit, defaults to 0"
**/
fn String[] tsplit(String s, String needle, usz max = 0)
fn String[] String.tsplit(String s, String needle, usz max = 0)
{
return s.split(needle, max, mem::temp()) @inline;
}