Skip to content

doc: remove trailing shell prompts #16720

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 26, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions src/doc/guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -1801,7 +1801,6 @@ Let's try compiling what Cargo gave us:
```{bash}
$ cargo build
Compiling guessing_game v0.0.1 (file:///home/you/projects/guessing_game)
$
```

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

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

Excellent! Try running our new program a few times:
Expand Down Expand Up @@ -2298,7 +2295,6 @@ The secret number is: 17
Please input your guess.
5
Please input a number!
$
```

Uh, what? But we did!
Expand Down Expand Up @@ -2365,7 +2361,6 @@ Please input your guess.
76
You guessed: 76
Too big!
$
```

Nice! You can see I even added spaces before my guess, and it still figured
Expand Down Expand Up @@ -2454,7 +2449,6 @@ You win!
Please input your guess.
quit
Please input a number!
$
```

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

Nice!
Expand Down Expand Up @@ -2923,7 +2916,6 @@ This should all compile as usual:
```{notrust,ignore}
$ cargo build
Compiling modules v0.0.1 (file:///home/you/projects/modules)
$
```

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

Great. Rust's infrastructure supports tests in two sorts of places, and they're
Expand Down Expand Up @@ -3250,7 +3241,6 @@ running 1 test
test foo ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured
$
```

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