diff --git a/lib/std/array_list.zig b/lib/std/array_list.zig index 3a66b9bb36..5c7b294c5c 100644 --- a/lib/std/array_list.zig +++ b/lib/std/array_list.zig @@ -743,7 +743,7 @@ pub fn ArrayListAlignedUnmanaged(comptime T: type, comptime alignment: ?u29) typ /// For a nicer API, `items.len` is the length, not the capacity. /// This requires "unsafe" slicing. - fn allocatedSlice(self: Self) Slice { + pub fn allocatedSlice(self: Self) Slice { return self.items.ptr[0..self.capacity]; } };