authorgravatar for silver@silv.reSilver <silver@silv.re> 2021-09-11 00:11:51+01:00
committergravatar for git@vexu.euVeikka Tuominen <git@vexu.eu> 2021-09-12 19:32:40+03:00
log211856693193b6e5ba4d58bdec1afdb839071fb3
tree24c329ac7ee5d851a71d482954b6cc1e71dcc7ff
parent0c091feb5ae52caf1ebf885c0de55b3159207001

std: publicize ArrayListUnmanaged.allocatedSlice to match ArrayList


1 files changed, 1 insertions(+), 1 deletions(-)

lib/std/array_list.zig+1-1
......@@ -743,7 +743,7 @@ pub fn ArrayListAlignedUnmanaged(comptime T: type, comptime alignment: ?u29) typ
743743
744744 /// For a nicer API, `items.len` is the length, not the capacity.
745745 /// This requires "unsafe" slicing.
746 fn allocatedSlice(self: Self) Slice {
746 pub fn allocatedSlice(self: Self) Slice {
747747 return self.items.ptr[0..self.capacity];
748748 }
749749 };