String Literal Interpolation #46
|
@ -17,7 +17,7 @@ pub fn Stack(comptime Value: type) type {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn drop(self: *Self, count: usize) bool {
|
pub fn drop(self: *Self, count: usize) bool {
|
||||||
if (math.checked_sub(self.values, count)) |updated_count| {
|
if (math.checked_sub(self.values.len, count)) |updated_count| {
|
||||||
self.values = self.values[0 .. updated_count];
|
self.values = self.values[0 .. updated_count];
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue