std: publicize ArrayListUnmanaged.allocatedSlice to match ArrayList

This commit is contained in:
Silver
2021-09-11 00:11:51 +01:00
committed by Veikka Tuominen
parent 0c091feb5a
commit 2118566931

View File

@@ -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];
}
};