mirror of
https://github.com/mainmatter/100-exercises-to-learn-rust
synced 2025-01-17 18:11:34 +01:00
Fix typo in comment.
This commit is contained in:
parent
5edebf6cf2
commit
785c9af4be
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ mod tests {
|
|||
fn works() {
|
||||
let ticket = Ticket::new("A title".into(), "A description".into(), "To-Do".into());
|
||||
// If you change the signatures as requested, this should compile:
|
||||
// we can call these methods one after the after because they borrow `self`
|
||||
// we can call these methods one after the other because they borrow `self`
|
||||
// rather than taking ownership of it.
|
||||
assert_eq!(ticket.title(), "A title");
|
||||
assert_eq!(ticket.description(), "A description");
|
||||
|
|
Loading…
Reference in a new issue