Commit 2118566931

Silver <silver@silv.re>
2021-09-11 01:11:51
std: publicize ArrayListUnmanaged.allocatedSlice to match ArrayList
1 parent 0c091fe
Changed files (1)
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];
         }
     };