Update ownership.md.

Borrowing the variables in the first problem
This commit is contained in:
Aditya K
2023-07-06 10:23:43 +05:30
committed by GitHub
parent d5f4b58d8c
commit 5453e7a05c

View File

@ -31,6 +31,15 @@ fn main() {
}
```
```
fn main() {
let x = String::from("hello, world");
let y = &x;
println!("{},{}",x,y);
}
```
2.
```rust