mirror of
https://github.com/sunface/rust-by-practice.git
synced 2025-06-23 20:49:41 +00:00
fixed some formatting
This commit is contained in:
@ -89,8 +89,8 @@ fn main() {
|
|||||||
let s1 = String::from("hello,");
|
let s1 = String::from("hello,");
|
||||||
let s2 = String::from("world!");
|
let s2 = String::from("world!");
|
||||||
let s3 = s1 + s2;
|
let s3 = s1 + s2;
|
||||||
assert_eq!(s3,"hello,world!");
|
assert_eq!(s3, "hello,world!");
|
||||||
println!("{}",s1);
|
println!("{}", s1);
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -107,7 +107,7 @@ fn main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn greetings(s: String) {
|
fn greetings(s: String) {
|
||||||
println!("{}",s)
|
println!("{}", s)
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user