Skip to content

Commit

Permalink
Update with as_str -> str_view
Browse files Browse the repository at this point in the history
  • Loading branch information
lerno committed Sep 24, 2023
1 parent 0b2af0f commit 05fdb71
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion day12.c3
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ fn Map* load_heightmap()
{
@pool()
{
String line = f.readline().as_str();
String line = f.readline().str_view();
foreach (int i, &c : line)
{
if (*c == 'S')
Expand Down
4 changes: 2 additions & 2 deletions day17.c3
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,6 @@ fn void main()
{
DString s = load_jets();
defer s.free();
solve(s.as_str(), 2022);
solve(s.as_str(), 1000000000000i64);
solve(s.str_view(), 2022);
solve(s.str_view(), 1000000000000i64);
}

0 comments on commit 05fdb71

Please sign in to comment.