Commit 2118566931
Changed files (1)
lib
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];
}
};