Merge pull request #358 from teddywaweru/patch-1

Update ownershp.md
This commit is contained in:
Sunface
2023-02-13 10:50:37 +08:00
committed by GitHub

View File

@ -23,11 +23,10 @@ fn main() {
println!("{},{}",x,y); println!("{},{}",x,y);
} }
``` ```
```rust ```rust
fn main() { fn main() {
let x = 10; let x = String::from("hello, world");
let y = x; let y = x.as_str();
println!("{},{}",x,y); println!("{},{}",x,y);
} }
``` ```