diff --git a/solutions/ownership/ownership.md b/solutions/ownership/ownership.md index b7992e9..a776d4c 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