From: Ralf Jung Date: Fri, 28 Apr 2023 13:32:53 +0000 (+0200) Subject: Merge pull request #39 from bzindovic/bzindovic-part1-clarification X-Git-Url: https://git.ralfj.de/rust-101.git/commitdiff_plain/9960465b9f5be770af699b69e4ebd580d8e6a3e4?hp=1bb09d0f6792fb9790b47f2652bac3643b90f22e Merge pull request #39 from bzindovic/bzindovic-part1-clarification Update part01.rs to clarify use of a variable --- diff --git a/src/part01.rs b/src/part01.rs index a4537ac..e00cf53 100644 --- a/src/part01.rs +++ b/src/part01.rs @@ -87,7 +87,7 @@ impl NumberOrNothing { //@ methods on an `enum` (and also on `struct`, which we will learn about later) //@ is independent of the definition of the type. `self` is like `this` in other //@ languages, and its type is always implicit. So `print` is now a method that -//@ takes as first argument a `NumberOrNothing`, just like `print_number_or_nothing`. +//@ takes `NumberOrNothing` as the first argument, just like `print_number_or_nothing`. //@ //@ Try making `number_or_default` from above an inherent method as well!