| ... | @@ -2983,7 +2983,7 @@ test "using slices for strings" { | ... | @@ -2983,7 +2983,7 @@ test "using slices for strings" { |
| 2983 | const world: []const u8 = "世界"; | 2983 | const world: []const u8 = "世界"; |
| 2984 | | 2984 | |
| 2985 | var all_together: [100]u8 = undefined; | 2985 | var all_together: [100]u8 = undefined; |
| 2986 | // You can use slice syntax with at least one runtime-know index on an | 2986 | // You can use slice syntax with at least one runtime-known index on an |
| 2987 | // array to convert an array into a slice. | 2987 | // array to convert an array into a slice. |
| 2988 | var start : usize = 0; | 2988 | var start : usize = 0; |
| 2989 | const all_together_slice = all_together[start..]; | 2989 | const all_together_slice = all_together[start..]; |