String Literal Interpolation #46

Merged
kayomn merged 6 commits from kym-string-interpolation into main 2023-11-08 00:32:49 +01:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 94a13b0d3c - Show all commits

View File

@ -17,7 +17,7 @@ pub fn Stack(comptime Value: type) type {
}
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];
return true;