| ... | @@ -193,7 +193,8 @@ pub fn FixedSizeFifo(comptime T: type) type { | ... | @@ -193,7 +193,8 @@ pub fn FixedSizeFifo(comptime T: type) type { |
| 193 | self.count += count; | 193 | self.count += count; |
| 194 | } | 194 | } |
| 195 | | 195 | |
| 196 | /// Appends the data in `src` to the fifo. You must | 196 | /// Appends the data in `src` to the fifo. |
| | 197 | /// You must have ensured there is enough space. |
| 197 | pub fn writeAssumeCapacity(self: *Self, src: []const T) void { | 198 | pub fn writeAssumeCapacity(self: *Self, src: []const T) void { |
| 198 | assert(self.writableLength() >= src.len); | 199 | assert(self.writableLength() >= src.len); |
| 199 | | 200 | |