diff --git a/lib/std/fifo.zig b/lib/std/fifo.zig index 22da02c8af..7cf3f9e906 100644 --- a/lib/std/fifo.zig +++ b/lib/std/fifo.zig @@ -193,7 +193,8 @@ pub fn FixedSizeFifo(comptime T: type) type { self.count += count; } - /// Appends the data in `src` to the fifo. You must + /// Appends the data in `src` to the fifo. + /// You must have ensured there is enough space. pub fn writeAssumeCapacity(self: *Self, src: []const T) void { assert(self.writableLength() >= src.len);