100-exercises-to-learn-rust
100-exercises-to-learn-rust copied to clipboard
Suggestion for improvement in instruction on 03_07_setters
Hello, and thanks for writing a really great resource! I'm really having fun learning Rust with this!
I had to check the solution for this problem, since I was trying to create a method on the struct for validating title, description and status. But in the solution, I see that it is a private function, not method that is created. The instruction had me trying to add the validate functions within the impl Ticket block.
So, unless I have misunderstood methods vs functions (which is entirely possible!) I suggest replacing the word methods with functions on the line I linked above.