aboutsummaryrefslogtreecommitdiff
path: root/std/list.zig
diff options
context:
space:
mode:
Diffstat (limited to 'std/list.zig')
-rw-r--r--std/list.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/std/list.zig b/std/list.zig
index 52a6eb3095..69f17df7f4 100644
--- a/std/list.zig
+++ b/std/list.zig
@@ -23,7 +23,7 @@ pub fn List(inline T: type) -> type{
l.allocator.free(T, l.items);
}
- pub fn toSlice(l: &Self) -> []T {
+ pub fn toSlice(l: &const Self) -> []const T {
return l.items[0...l.len];
}