Reduce number of range and slice operators #239
Replace .. and ... with : and ..
This commit is contained in:
1 parent
a6fe656f21
commit
0718f14774
31 files changed
+204
-219
No files matched your search
@@ -158,7 +158,7 @@ decode_last_rune :: proc(s: []u8) -> (rune, int) {
|
||||
}
|
||||
|
||||
start = max(start, 0);
|
||||
r, size = decode_rune(s[start..end]);
|
||||
r, size = decode_rune(s[start:end]);
|
||||
if start+size != end {
|
||||
return RUNE_ERROR, 1;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user