Skip to content

Commit 3ae1059

Browse files
committed
auto merge of #16720 : tshepang/rust/trailing-prompt, r=alexcrichton
because eyesore
2 parents 7932b71 + f4fb3ad commit 3ae1059

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/doc/guide.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1801,7 +1801,6 @@ Let's try compiling what Cargo gave us:
18011801
```{bash}
18021802
$ cargo build
18031803
Compiling guessing_game v0.0.1 (file:///home/you/projects/guessing_game)
1804-
$
18051804
```
18061805

18071806
Excellent! Open up your `src/main.rs` again. We'll be writing all of
@@ -1817,7 +1816,6 @@ $ cargo run
18171816
Compiling guessing_game v0.1.0 (file:/home/you/projects/guessing_game)
18181817
Running `target/guessing_game`
18191818
Hello, world!
1820-
$
18211819
```
18221820

18231821
Great! The `run` command comes in handy when you need to rapidly iterate on a project.
@@ -1962,7 +1960,6 @@ fn main() {
19621960
```{notrust,ignore}
19631961
$ cargo build
19641962
Compiling guessing_game v0.0.1 (file:///home/you/projects/guessing_game)
1965-
$
19661963
```
19671964

19681965
Excellent! Try running our new program a few times:
@@ -2298,7 +2295,6 @@ The secret number is: 17
22982295
Please input your guess.
22992296
5
23002297
Please input a number!
2301-
$
23022298
```
23032299

23042300
Uh, what? But we did!
@@ -2365,7 +2361,6 @@ Please input your guess.
23652361
76
23662362
You guessed: 76
23672363
Too big!
2368-
$
23692364
```
23702365

23712366
Nice! You can see I even added spaces before my guess, and it still figured
@@ -2454,7 +2449,6 @@ You win!
24542449
Please input your guess.
24552450
quit
24562451
Please input a number!
2457-
$
24582452
```
24592453

24602454
Ha! `quit` actually quits. As does any other non-number input. Well, this is
@@ -2771,7 +2765,6 @@ $ cargo run
27712765
Compiling modules v0.0.1 (file:///home/you/projects/modules)
27722766
Running `target/modules`
27732767
Hello, world!
2774-
$
27752768
```
27762769

27772770
Nice!
@@ -2923,7 +2916,6 @@ This should all compile as usual:
29232916
```{notrust,ignore}
29242917
$ cargo build
29252918
Compiling modules v0.0.1 (file:///home/you/projects/modules)
2926-
$
29272919
```
29282920

29292921
We've seen how the `::` operator can be used to call into modules, but when
@@ -3097,7 +3089,6 @@ $ cargo run
30973089
Compiling testing v0.0.1 (file:///home/you/projects/testing)
30983090
Running `target/testing`
30993091
Hello, world!
3100-
$
31013092
```
31023093

31033094
Great. Rust's infrastructure supports tests in two sorts of places, and they're
@@ -3250,7 +3241,6 @@ running 1 test
32503241
test foo ... ok
32513242
32523243
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured
3253-
$
32543244
```
32553245

32563246
Nice! Our test passes, as we expected. Let's get rid of that warning for our `main`

0 commit comments

Comments
 (0)