diff --git a/book/src/03_ticket_v1/07_setters.md b/book/src/03_ticket_v1/07_setters.md index caaf92fcd8..dba2a33922 100644 --- a/book/src/03_ticket_v1/07_setters.md +++ b/book/src/03_ticket_v1/07_setters.md @@ -29,10 +29,10 @@ are respected (i.e. you can't set a `Ticket`'s title to an empty string). There are two common ways to implement setters in Rust: -- Taking `self` as input. +- Taking `mut self` as input. - Taking `&mut self` as input. -### Taking `self` as input +### Taking `mut self` as input The first approach looks like this: