Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
uellenberg committed Oct 24, 2023
1 parent c48a38e commit 68e6773
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ my_function_2(&data);

// A function will decide whether it wants a reference to the data, or the data itself.
// It will also decide whether it wants an immutable reference, or a mutable one.
// You don't get to how a function takes in data. If it requires a mutable reference, you must
// You don't get to choose how a function takes in data. If it requires a mutable reference, you must
// give it a mutable reference. And if it requires the data itself, you must give it the data.
//
// One nice thing about this is that it's immediately obvious what's happening.
Expand Down Expand Up @@ -182,4 +182,4 @@ println!("{list_ref:?}");

Alternatively, we could just remove the scope.
There are also nicer ways to do things like this, which we'll look into soon.
Happy coding!
Happy coding!

0 comments on commit 68e6773

Please sign in to comment.