mirror of
https://github.com/sunface/rust-by-practice.git
synced 2025-06-23 12:39:42 +00:00
fix typo
This commit is contained in:
@ -34,7 +34,9 @@ fn main() {
|
|||||||
fn main() {
|
fn main() {
|
||||||
let mut s = String::from("hello, ");
|
let mut s = String::from("hello, ");
|
||||||
|
|
||||||
borrow_object(s)
|
borrow_object(s);
|
||||||
|
|
||||||
|
println!("Success!")
|
||||||
}
|
}
|
||||||
|
|
||||||
fn borrow_object(s: &String) {}
|
fn borrow_object(s: &String) {}
|
||||||
|
Reference in New Issue
Block a user