| ... | @@ -290,7 +290,7 @@ const SplitIterator = struct { | ... | @@ -290,7 +290,7 @@ const SplitIterator = struct { |
| 290 | /// Allocates memory for the result, which must be freed by the caller. | 290 | /// Allocates memory for the result, which must be freed by the caller. |
| 291 | pub fn join(allocator: &Allocator, sep: u8, strings: ...) -> %[]u8 { | 291 | pub fn join(allocator: &Allocator, sep: u8, strings: ...) -> %[]u8 { |
| 292 | comptime assert(strings.len >= 1); | 292 | comptime assert(strings.len >= 1); |
| 293 | var total_strings_len: usize = strings.len; // 1 slash per string | 293 | var total_strings_len: usize = strings.len; // 1 sep per string |
| 294 | { | 294 | { |
| 295 | comptime var string_i = 0; | 295 | comptime var string_i = 0; |
| 296 | inline while (string_i < strings.len) : (string_i += 1) { | 296 | inline while (string_i < strings.len) : (string_i += 1) { |