From: Budo Zindovic Date: Tue, 25 Apr 2023 07:48:59 +0000 (+0200) Subject: Update part01.rs X-Git-Url: https://git.ralfj.de/rust-101.git/commitdiff_plain/04e6bfa1aab433e4cfb0058132f7b57258ddcd16?ds=sidebyside;hp=-c Update part01.rs --- 04e6bfa1aab433e4cfb0058132f7b57258ddcd16 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!