.. half closed range; ... open range; ... variadic syntax

This commit is contained in:
Ginger Bill
2017-07-07 23:42:43 +01:00
parent 45353465a6
commit 4b051a0d3b
19 changed files with 151 additions and 167 deletions
+1 -1
View File
@@ -160,7 +160,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;
}