| ... | ... | @@ -774,7 +774,7 @@ pub fn Aligned(comptime T: type, comptime alignment: ?mem.Alignment) type { |
| 774 | 774 | /// The caller owns the returned memory. Empties this ArrayList. |
| 775 | 775 | /// Its capacity is cleared, making deinit() safe but unnecessary to call. |
| 776 | 776 | /// |
| 777 | | /// Asserts what the capacity is equal to the length. |
| 777 | /// Asserts that the capacity is equal to the length. |
| 778 | 778 | /// Never invalidates element pointers. |
| 779 | 779 | /// |
| 780 | 780 | /// See also: |
| ... | ... | @@ -787,7 +787,7 @@ pub fn Aligned(comptime T: type, comptime alignment: ?mem.Alignment) type { |
| 787 | 787 | } |
| 788 | 788 | |
| 789 | 789 | /// The caller owns the returned memory. ArrayList becomes empty. |
| 790 | | /// Asserts what the capacity is equal to the length + 1. |
| 790 | /// Asserts that the capacity is equal to the length + 1. |
| 791 | 791 | /// Never invalidates element pointers. |
| 792 | 792 | pub fn toOwnedSliceSentinelAssert(self: *Self, comptime sentinel: T) SentinelSlice(sentinel) { |
| 793 | 793 | std.debug.assert(self.items.len + 1 == self.capacity); |