diff --git a/src/ch05-01-method-syntax.md b/src/ch05-01-method-syntax.md index 854d1eb..74ec4f9 100644 --- a/src/ch05-01-method-syntax.md +++ b/src/ch05-01-method-syntax.md @@ -4,9 +4,9 @@ In the last section on ownership, we made several references to ‘methods’. Methods look like this: ```rust -let s1 = String::from("hello"); +let s1 = "hello"; -// call a method on our String +// call a method on s1 let s2 = s1.clone(); println!("{}", s1);