diff --git a/solutions/ownership/ownership.md b/solutions/ownership/ownership.md index 1237fc0..b41ba9f 100644 --- a/solutions/ownership/ownership.md +++ b/solutions/ownership/ownership.md @@ -31,6 +31,15 @@ fn main() { } ``` +``` +fn main() { + let x = String::from("hello, world"); + let y = &x; + println!("{},{}",x,y); +} + +``` + 2. ```rust