From 94079c49af3de85417d1ccaf3c6638e4b579d273 Mon Sep 17 00:00:00 2001 From: Suganthan Madhavan Date: Sat, 1 Mar 2025 19:06:53 -0500 Subject: [PATCH] use ref --- solutions/ownership/ownership.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/solutions/ownership/ownership.md b/solutions/ownership/ownership.md index 1237fc0..1263b99 100644 --- a/solutions/ownership/ownership.md +++ b/solutions/ownership/ownership.md @@ -163,7 +163,7 @@ fn main() { let t = (String::from("hello"), String::from("world")); // fill the blanks - let (s1, s2) = t.clone(); + let (ref s1, ref s2) = t; println!("{:?}, {:?}, {:?}", s1, s2, t); // -> "hello", "world", ("hello", "world") }