| ... | @@ -34,7 +34,7 @@ pub fn BoundedArray(comptime T: type, comptime capacity: usize) type { | ... | @@ -34,7 +34,7 @@ pub fn BoundedArray(comptime T: type, comptime capacity: usize) type { |
| 34 | } | 34 | } |
| 35 | | 35 | |
| 36 | /// View the internal array as a constant slice whose size was previously set. | 36 | /// View the internal array as a constant slice whose size was previously set. |
| 37 | pub fn constSlice(self: Self) []const T { | 37 | pub fn constSlice(self: *const Self) []const T { |
| 38 | return self.buffer[0..self.len]; | 38 | return self.buffer[0..self.len]; |
| 39 | } | 39 | } |
| 40 | | 40 | |