Fix fields_proc in strings and bytes
This commit is contained in:
1 parent
c889591333
commit
85f8c8df91
2 files changed
+2
-2
No files matched your search
@@ -1143,7 +1143,7 @@ fields_proc :: proc(s: []byte, f: proc(rune) -> bool, allocator := context.alloc
|
||||
}
|
||||
|
||||
if start >= 0 {
|
||||
append(&subslices, s[start : end])
|
||||
append(&subslices, s[start : len(s)])
|
||||
}
|
||||
|
||||
return subslices[:]
|
||||
|
||||
@@ -1288,7 +1288,7 @@ fields_proc :: proc(s: string, f: proc(rune) -> bool, allocator := context.alloc
|
||||
}
|
||||
|
||||
if start >= 0 {
|
||||
append(&substrings, s[start : end])
|
||||
append(&substrings, s[start : len(s)])
|
||||
}
|
||||
|
||||
return substrings[:]
|
||||
|
||||
Reference in new issue
Block a user