change unmodified vars to consts in anticipation of zig changes

This commit is contained in:
Krzysztof Wolicki
2023-11-17 15:40:59 +01:00
parent 7a4e167ab3
commit 44a48f62f1
29 changed files with 414 additions and 414 deletions

View File

@@ -49,7 +49,7 @@ pub fn CircBuf(comptime T: type, comptime default: T) type {
/// Initialize a new circular buffer that can store size elements.
pub fn init(alloc: Allocator, size: usize) !Self {
var buf = try alloc.alloc(T, size);
const buf = try alloc.alloc(T, size);
@memset(buf, default);
return Self{