Merge pull request #278 from Skandesh/patch-2

Update String.md
This commit is contained in:
Sunface 2022-07-28 09:10:21 +08:00 committed by GitHub
commit 7cd397582c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ fn main() {
}
fn borrow_string(s: &str) {
println!("ownership of \"{}\" is moved here!", s)
println!("ownership of \"{}\" is still with the variable 's', only the reference is passed", s)
}
```
@ -170,4 +170,4 @@ fn main() {
println!("Success!")
}
```
```