mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-03 22:28:46 +00:00
Fix fields_proc in strings and bytes
This commit is contained in:
@@ -1143,7 +1143,7 @@ fields_proc :: proc(s: []byte, f: proc(rune) -> bool, allocator := context.alloc
|
|||||||
}
|
}
|
||||||
|
|
||||||
if start >= 0 {
|
if start >= 0 {
|
||||||
append(&subslices, s[start : end])
|
append(&subslices, s[start : len(s)])
|
||||||
}
|
}
|
||||||
|
|
||||||
return subslices[:]
|
return subslices[:]
|
||||||
|
|||||||
@@ -1288,7 +1288,7 @@ fields_proc :: proc(s: string, f: proc(rune) -> bool, allocator := context.alloc
|
|||||||
}
|
}
|
||||||
|
|
||||||
if start >= 0 {
|
if start >= 0 {
|
||||||
append(&substrings, s[start : end])
|
append(&substrings, s[start : len(s)])
|
||||||
}
|
}
|
||||||
|
|
||||||
return substrings[:]
|
return substrings[:]
|
||||||
|
|||||||
Reference in New Issue
Block a user