diff --git a/solutions/ownership/ownership.md b/solutions/ownership/ownership.md index a776d4c1..c1429856 100644 --- a/solutions/ownership/ownership.md +++ b/solutions/ownership/ownership.md @@ -172,7 +172,7 @@ fn main() { let t = (String::from("hello"), String::from("world")); // fill the blanks - let (ref s1, ref s2) = t; + let (s1, s2) = t.clone(); println!("{:?}, {:?}, {:?}", s1, s2, t); // -> "hello", "world", ("hello", "world") }