X-Git-Url: https://git.ralfj.de/rust-101.git/blobdiff_plain/53260b4082f1c76b657845560c273b853a166fab..bbab0538d2d0ddfdc0ef3f73e342c2d1f7222835:/src/part01.rs diff --git a/src/part01.rs b/src/part01.rs index 7c205bd..7d66385 100644 --- a/src/part01.rs +++ b/src/part01.rs @@ -77,7 +77,7 @@ impl NumberOrNothing { // 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`. -// +// // Try making `number_or_default` from above an inherent method as well! // With our refactored functions and methods, `main` now looks as follows: