Merge pull request #259 from katopz/no-space

remove unnecessary space
This commit is contained in:
Sunface
2022-07-07 08:39:22 +08:00
committed by GitHub
7 changed files with 20 additions and 20 deletions

View File

@ -10,7 +10,7 @@ fn main() {
```rust
fn main() {
let s: Box<str> = "hello, world".into();
let s: Box<str> = "hello, world".into();
greetings(&s)
}
@ -46,7 +46,7 @@ fn main() {
```rust
fn main() {
let mut s = String::from("hello");
let mut s = String::from("hello");
s.push(',');
s.push_str(" world");
s += "!";
@ -83,7 +83,7 @@ fn main() {
```rust
fn main() {
let s = "hello, world".to_string();
let s = "hello, world".to_string();
greetings(s)
}
@ -114,7 +114,7 @@ fn main() {
```rust
fn main() {
let s = "hello, world";
let s = "hello, world";
let s1: &str = s;
}
```

View File

@ -136,7 +136,7 @@ fn main() {
fn main() {
let mut s = String::new();
let update_string = |str| s.push_str(str);
let update_string = |str| s.push_str(str);
exec(update_string);