@@ -1801,7 +1801,6 @@ Let's try compiling what Cargo gave us:
1801
1801
``` {bash}
1802
1802
$ cargo build
1803
1803
Compiling guessing_game v0.0.1 (file:///home/you/projects/guessing_game)
1804
- $
1805
1804
```
1806
1805
1807
1806
Excellent! Open up your ` src/main.rs ` again. We'll be writing all of
@@ -1817,7 +1816,6 @@ $ cargo run
1817
1816
Compiling guessing_game v0.1.0 (file:/home/you/projects/guessing_game)
1818
1817
Running `target/guessing_game`
1819
1818
Hello, world!
1820
- $
1821
1819
```
1822
1820
1823
1821
Great! The ` run ` command comes in handy when you need to rapidly iterate on a project.
@@ -1962,7 +1960,6 @@ fn main() {
1962
1960
``` {notrust,ignore}
1963
1961
$ cargo build
1964
1962
Compiling guessing_game v0.0.1 (file:///home/you/projects/guessing_game)
1965
- $
1966
1963
```
1967
1964
1968
1965
Excellent! Try running our new program a few times:
@@ -2298,7 +2295,6 @@ The secret number is: 17
2298
2295
Please input your guess.
2299
2296
5
2300
2297
Please input a number!
2301
- $
2302
2298
```
2303
2299
2304
2300
Uh, what? But we did!
@@ -2365,7 +2361,6 @@ Please input your guess.
2365
2361
76
2366
2362
You guessed: 76
2367
2363
Too big!
2368
- $
2369
2364
```
2370
2365
2371
2366
Nice! You can see I even added spaces before my guess, and it still figured
@@ -2454,7 +2449,6 @@ You win!
2454
2449
Please input your guess.
2455
2450
quit
2456
2451
Please input a number!
2457
- $
2458
2452
```
2459
2453
2460
2454
Ha! ` quit ` actually quits. As does any other non-number input. Well, this is
@@ -2771,7 +2765,6 @@ $ cargo run
2771
2765
Compiling modules v0.0.1 (file:///home/you/projects/modules)
2772
2766
Running `target/modules`
2773
2767
Hello, world!
2774
- $
2775
2768
```
2776
2769
2777
2770
Nice!
@@ -2923,7 +2916,6 @@ This should all compile as usual:
2923
2916
``` {notrust,ignore}
2924
2917
$ cargo build
2925
2918
Compiling modules v0.0.1 (file:///home/you/projects/modules)
2926
- $
2927
2919
```
2928
2920
2929
2921
We've seen how the ` :: ` operator can be used to call into modules, but when
@@ -3097,7 +3089,6 @@ $ cargo run
3097
3089
Compiling testing v0.0.1 (file:///home/you/projects/testing)
3098
3090
Running `target/testing`
3099
3091
Hello, world!
3100
- $
3101
3092
```
3102
3093
3103
3094
Great. Rust's infrastructure supports tests in two sorts of places, and they're
@@ -3250,7 +3241,6 @@ running 1 test
3250
3241
test foo ... ok
3251
3242
3252
3243
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured
3253
- $
3254
3244
```
3255
3245
3256
3246
Nice! Our test passes, as we expected. Let's get rid of that warning for our ` main `
0 commit comments