pub fn tryAddDigit(self: *Self, digit: u8) void self: *Selfdigit: u888
89
90
91
92
93 pub fn tryAddDigit(self: *Self, digit: u8) void {
if (self.num_digits < max_digits) {
self.digits[self.num_digits] = digit;
}
self.num_digits += 1;
}
Append a digit to the buffer