diff --git a/lib/std/mem.zig b/lib/std/mem.zig index 4b34ad12385bc77b2d67f988d60cde2d9a277027..1628466120a7846af0fd51658240471ceff0f84f 100644 --- a/lib/std/mem.zig +++ b/lib/std/mem.zig @@ -3462,7 +3462,7 @@ pub fn SplitIterator(comptime T: type, comptime delimiter_type: DelimiterType) t /// Returns a slice of the next field, or null if splitting is complete. /// This method does not alter self.index. - pub fn peek(self: *Self) ?[]const T { + pub fn peek(self: *const Self) ?[]const T { const start = self.index orelse return null; const end = if (switch (delimiter_type) { .sequence => findPos(T, self.buffer, start, self.delimiter),