We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2eebc16 commit da88f07Copy full SHA for da88f07
gallop.zig
@@ -15,7 +15,7 @@ const Model = struct {
15
const Self = @This();
16
17
pub fn init() Self { return Self { .ctx = 0, .data = .{Counter.init()}**(1<<12) }; }
18
- pub fn p(self: Self) u16 { return self.data[self.ctx].p(); }
+ pub fn p(self: *Self) u16 { return self.data[self.ctx].p(); }
19
pub fn update(self: *Self, bit: u1) void {
20
self.data[self.ctx].update(bit);
21
self.ctx <<= 1; self.ctx |= bit;
0 commit comments