diff --git a/src/ownership.md b/src/ownership.md index 5c75781d3..26471c63b 100644 --- a/src/ownership.md +++ b/src/ownership.md @@ -81,7 +81,7 @@ This kind of string can be mutated: ```rust let mut s = String::from("hello"); -s = s + ", world!"; +s.push_str(", world!"); ``` ## Memory and allocation