| ... | @@ -776,6 +776,9 @@ pub fn Aligned(comptime T: type, comptime alignment: ?mem.Alignment) type { | ... | @@ -776,6 +776,9 @@ pub fn Aligned(comptime T: type, comptime alignment: ?mem.Alignment) type { |
| 776 | /// | 776 | /// |
| 777 | /// Asserts what the capacity is equal to the length. | 777 | /// Asserts what the capacity is equal to the length. |
| 778 | /// Never invalidates element pointers. | 778 | /// Never invalidates element pointers. |
| | 779 | /// |
| | 780 | /// See also: |
| | 781 | /// * `shrinkToLen` |
| 779 | pub fn toOwnedSliceAssert(self: *Self) Slice { | 782 | pub fn toOwnedSliceAssert(self: *Self) Slice { |
| 780 | assert(self.items.len == self.capacity); | 783 | assert(self.items.len == self.capacity); |
| 781 | const items = self.items; | 784 | const items = self.items; |