100-exercises-to-learn-rust icon indicating copy to clipboard operation
100-exercises-to-learn-rust copied to clipboard

Suggestion for improvement in instruction on 03_07_setters

Open thomasaarholt opened this issue 1 year ago • 0 comments

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.

thomasaarholt avatar May 17 '24 16:05 thomasaarholt