Skip to content

Commit

Permalink
fix(string): handle temp_ascii_to_lower arguments properly
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandolguevara committed Sep 30, 2024
1 parent c8018c5 commit f08b620
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/std/core/string.c3
Original file line number Diff line number Diff line change
Expand Up @@ -540,9 +540,9 @@ fn String String.new_ascii_to_lower(s, Allocator allocator = allocator::heap())
return copy;
}

fn String String.temp_ascii_to_lower(s, Allocator allocator = allocator::heap())
fn String String.temp_ascii_to_lower(s, Allocator allocator = allocator::temp())
{
return s.new_ascii_to_lower(allocator::temp());
return s.new_ascii_to_lower(allocator);
}

/**
Expand Down

0 comments on commit f08b620

Please sign in to comment.