Skip to content

Commit 1849fd7

Browse files
author
BO41
committed
Remove $ prefix
1 parent 1172bda commit 1849fd7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+102
-98
lines changed

posts/2015-10-29-Rust-1.4.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ Finally, one major Cargo improvement: [`cargo update` will now print extra
7777
information about what it is
7878
changing.](https://github.com/rust-lang/cargo/pull/1931) For example:
7979

80-
```text
81-
$ cargo update
80+
```console
81+
cargo update
8282
Updating registry `https://github.com/rust-lang/crates.io-index`
8383
Updating libc v0.1.8 -> v0.1.10
8484
Updating memchr v0.1.3 -> v0.1.5

posts/2016-05-05-cargo-pillars.md

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,8 @@ edit the `Cargo.toml` and add the `time` crate from [crates.io](https://crates.i
157157
Now that we've added the `time` crate, let's see what happens if we ask Cargo to
158158
build our package:
159159

160-
```
161-
$ cargo build
160+
```console
161+
cargo build
162162
Compiling winapi v0.2.6
163163
Compiling libc v0.2.10
164164
Compiling winapi-build v0.1.1
@@ -173,16 +173,15 @@ up into smaller crates that do one thing and do it well**.
173173

174174
Now that we successfully built our crate, what happens if we try to build it again?
175175

176-
```
177-
$ cargo build
178-
176+
```console
177+
cargo build
179178
```
180179

181180
Nothing happened at all. Why's that? We can always ask Cargo to give us more
182181
information through the `--verbose` flag, so let's do that:
183182

184-
```
185-
$ cargo build --verbose
183+
```console
184+
cargo build --verbose
186185
Fresh libc v0.2.10
187186
Fresh winapi v0.2.6
188187
Fresh winapi-build v0.1.1
@@ -240,8 +239,8 @@ left off, with the exact same source code for all of our dependencies.
240239
To do this, we check in our `Cargo.lock` and clone the repository on our new
241240
machine. Then, we run `cargo build` again.
242241

243-
```
244-
$ cargo build
242+
```console
243+
cargo build
245244
Compiling libc v0.2.10
246245
Compiling winapi v0.2.6
247246
Compiling winapi-build v0.1.1
@@ -271,8 +270,8 @@ fn main() {
271270

272271
To run the example, we ask Cargo to build and run it:
273272

274-
```
275-
$ cargo run --example date
273+
```console
274+
cargo run --example date
276275
Compiling datetime v0.1.0 (file:///Users/ykatz/Code/datetime)
277276
Running `target/debug/examples/date`
278277
26 Apr 2016 :: 05:03:38
@@ -322,8 +321,8 @@ to our package:
322321

323322
After using the crate in our library, let's run `cargo build` again:
324323

325-
```
326-
$ cargo build
324+
```console
325+
cargo build
327326
Updating registry `https://github.com/rust-lang/crates.io-index`
328327
Downloading tz v0.2.1
329328
Downloading byteorder v0.5.1
@@ -386,8 +385,8 @@ fn bench_date(b: &mut Bencher) {
386385
```
387386
If we then run `cargo bench`:
388387

389-
```
390-
$ cargo bench
388+
```console
389+
cargo bench
391390
Compiling winapi v0.2.6
392391
Compiling libc v0.2.10
393392
Compiling byteorder v0.5.1
@@ -450,8 +449,8 @@ library for Unix-specific functionality.
450449

451450
As before, when I run `cargo build`, Cargo *conservatively* adds `nix` and its dependencies:
452451

453-
```
454-
$ cargo build
452+
```console
453+
cargo build
455454
Updating registry `https://github.com/rust-lang/crates.io-index`
456455
Downloading nix v0.5.0
457456
Downloading bitflags v0.4.0

posts/2016-05-13-rustup.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,8 @@ stable toolchain that targets the 64-bit, MSVC ABI.
144144

145145
[abi]: https://www.rust-lang.org/downloads.html#win-foot
146146

147-
```
148-
$ rustup default stable-x86_64-pc-windows-msvc
147+
```console
148+
rustup default stable-x86_64-pc-windows-msvc
149149
info: syncing channel updates for 'stable-x86_64-pc-windows-msvc'
150150
info: downloading component 'rustc'
151151
info: downloading component 'rust-std'

posts/2016-08-10-Shape-of-errors-to-come.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ explanations.
9494
Today, when you can call `--explain`, you pass an error code. The compiler then prints out
9595
an extended message that goes into more detail about how errors of that form occur:
9696

97-
```
98-
> rustc --explain E0200
97+
```console
98+
rustc --explain E0200
9999

100100
Unsafe traits must have unsafe implementations. This error occurs when an
101101
implementation for an unsafe trait isn't marked as unsafe. This may be resolved

posts/2016-09-08-incremental.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ time since implementation started towards the end of last year, all of the
2828
[basic components][incr-comp-rfc] are in place, the bulk of the groundwork has
2929
been done. You can give it a try in the nightly version of the compiler:
3030

31-
```
31+
```console
3232
rustc -Zincremental=<path> ./main.rs
3333
```
3434

posts/2016-09-29-Rust-1.12.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ we showed above, at the start of the post? Here's an example of attempting to
7373
compile that code while passing the `--error-format=json` flag:
7474

7575
```bash
76-
$ rustc borrowck-assign-comp.rs --error-format=json
76+
rustc borrowck-assign-comp.rs --error-format=json
7777
{"message":"cannot assign to `p.x` because it is borrowed","level":"error","spans":[{"file_name":"borrowck-assign-comp.rs","byte_start":562,"byte_end":563,"line_start":15,"line_end":15,"column_start":14,"column_end":15,"is_primary":false,"text":[{"text":" let q = &p;","highlight_start":14,"highlight_end":15}],"label":"borrow of `p.x` occurs here","suggested_replacement":null,"expansion":null}],"label":"assignment to borrowed `p.x` occurs here","suggested_replacement":null,"expansion":null}],"children":[],"rendered":null}
7878
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":null}
7979
```
@@ -117,7 +117,7 @@ and easier to verify that they are correct.
117117
* [The compiler can now be built against LLVM 3.9](https://github.com/rust-lang/rust/pull/35594)
118118
* [Test binaries now support a `--test-threads` argument to specify the number
119119
of threads used to run tests, and which acts the same as the
120-
`RUST_TEST_THREADS` environment variable](https://github.com/rust-lang/rust/pull/35414)
120+
`RUST_TEST_THREADS` environment variable](https://github.com/rust-lang/rust/pull/35414)
121121
* [The test runner now emits a warning when tests run over 60
122122
seconds](https://github.com/rust-lang/rust/pull/35405)
123123
* [Rust releases now come with source packages that can be installed by rustup

posts/2016-12-22-Rust-1.14.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ small taste of how it works, once you have [emscripten] installed, compiling
4242
some Rust code to WebAssembly is as easy as:
4343

4444
```bash
45-
$ rustup target add wasm32-unknown-emscripten
45+
rustup target add wasm32-unknown-emscripten
4646
$ echo 'fn main() { println!("Hello, Emscripten!"); }' > hello.rs
4747
$ rustc --target=wasm32-unknown-emscripten hello.rs
4848
$ node hello.js

posts/2017-02-02-Rust-1.15.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ systems programming language focused on safety, speed, and concurrency.
1010
If you have a previous version of Rust installed, getting Rust 1.15 is as easy as:
1111

1212
```bash
13-
$ rustup update stable
13+
rustup update stable
1414
```
1515

1616
If you don't have it already, you can [get `rustup`][install] from the

posts/2017-02-09-Rust-1.15.1.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ systems programming language focused on safety, speed, and concurrency.
1010
If you have a previous version of Rust installed, getting Rust 1.15.1 is as easy as:
1111

1212
```bash
13-
$ rustup update stable
13+
rustup update stable
1414
```
1515

1616
If you don't have it already, you can [download Rust][install] from the

posts/2017-03-16-Rust-1.16.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ systems programming language focused on safety, speed, and concurrency.
1010
If you have a previous version of Rust installed, getting Rust 1.16 is as easy as:
1111

1212
```bash
13-
$ rustup update stable
13+
rustup update stable
1414
```
1515

1616
If you don't have it already, you can [get `rustup`][install] from the
@@ -114,7 +114,7 @@ will live as long as `Name`, which is required for `Name` to be valid. Let's try
114114
code with Rust 1.15.1:
115115

116116
```bash
117-
> rustc +1.15.1 foo.rs --crate-type=lib
117+
rustc +1.15.1 foo.rs --crate-type=lib
118118
error[E0495]: cannot infer an appropriate lifetime for lifetime parameter in generic type due to conflicting requirements
119119
--> .\foo.rs:10:5
120120
|
@@ -138,7 +138,7 @@ The compiler explains the issue, and gives a helpful suggestion. So let's try it
138138
the `'a`, and compile again:
139139
140140
```bash
141-
> rustc +1.15.1 .\foo.rs --crate-type=lib
141+
rustc +1.15.1 .\foo.rs --crate-type=lib
142142
error[E0308]: method not compatible with trait
143143
--> .\foo.rs:10:5
144144
|
@@ -163,7 +163,7 @@ It still doesn't work. That help message was not actually helpful. It does sugge
163163
lifetime, this time on `Name`. If we do that...
164164
165165
```bash
166-
> rustc +1.15.1 .\foo.rs --crate-type=lib
166+
rustc +1.15.1 .\foo.rs --crate-type=lib
167167
<snip>
168168
help: consider using an explicit lifetime parameter as shown: fn from_str(s: &'a str) -> Result<Name<'a>, ()>
169169
--> .\foo.rs:10:5
@@ -175,7 +175,7 @@ This diagnostic was well-intentioned, but when it's wrong, it was *very* wrong,
175175
it wouldn't even suggest valid Rust syntax! Furthermore, more advanced Rust users didn't really need the
176176
suggestion, but new Rustaceans would take them to heart, and then be led down this bad path. As such, we decided
177177
that for now, [we should remove the help message entirely]. We may bring it back in the future, but only if we can
178-
limit false positives.
178+
limit false positives.
179179
180180
[we should remove the help message entirely]: https://github.com/rust-lang/rust/pull/37057
181181

posts/2017-04-27-Rust-1.17.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ systems programming language focused on safety, speed, and concurrency.
1010
If you have a previous version of Rust installed, getting Rust 1.17 is as easy as:
1111

1212
```bash
13-
$ rustup update stable
13+
rustup update stable
1414
```
1515

1616
If you don't have it already, you can [get `rustup`][install] from the

posts/2017-06-08-Rust-1.18.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ systems programming language focused on safety, speed, and concurrency.
1010
If you have a previous version of Rust installed, getting Rust 1.18 is as easy as:
1111

1212
```bash
13-
$ rustup update stable
13+
rustup update stable
1414
```
1515

1616
If you don't have it already, you can [get `rustup`][install] from the

posts/2017-07-20-Rust-1.19.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ systems programming language focused on safety, speed, and concurrency.
1010
If you have a previous version of Rust installed, getting Rust 1.19 is as easy as:
1111

1212
```bash
13-
$ rustup update stable
13+
rustup update stable
1414
```
1515

1616
If you don't have it already, you can [get `rustup`][install] from the
@@ -152,7 +152,7 @@ Other new features:
152152
- [`Box<[u8]>` now implements `From<Box<str>>`][41258]
153153
- [`SplitWhitespace` now implements `Clone`][41659]
154154
- [
155-
`[u8]::reverse` is now 5x faster and
155+
`[u8]::reverse` is now 5x faster and
156156
`[u16]::reverse` is now 1.5x faster][41764]
157157

158158
[41449]: https://github.com/rust-lang/rust/pull/41449

posts/2017-08-31-Rust-1.20.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ is a systems programming language focused on safety, speed, and concurrency.
1010
If you have a previous version of Rust installed, getting Rust 1.20 is as easy as:
1111

1212
```bash
13-
$ rustup update stable
13+
rustup update stable
1414
```
1515

1616
If you don't have it already, you can [get `rustup`][install] from the

posts/2017-10-12-Rust-1.21.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ is a systems programming language focused on safety, speed, and concurrency.
1010
If you have a previous version of Rust installed, getting Rust 1.21 is as easy as:
1111

1212
```bash
13-
$ rustup update stable
13+
rustup update stable
1414
```
1515

1616
If you don't have it already, you can [get `rustup`][install] from the
@@ -51,11 +51,11 @@ use std::thread;
5151

5252
fn main() {
5353
let x = &5;
54-
54+
5555
thread::spawn(move || {
5656
println!("{}", x);
57-
});
58-
57+
});
58+
5959
}
6060
```
6161

posts/2017-11-22-Rust-1.22.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ If you have a previous version of Rust installed via rustup, getting Rust
1919
1.22.1 is as easy as:
2020

2121
```bash
22-
$ rustup update stable
22+
rustup update stable
2323
```
2424

2525
If you don't have it already, you can [get `rustup`][install] from the

posts/2018-01-04-Rust-1.23.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ If you have a previous version of Rust installed via rustup, getting Rust
1111
1.23.0 is as easy as:
1212

1313
```bash
14-
$ rustup update stable
14+
rustup update stable
1515
```
1616

1717
If you don't have it already, you can [get `rustup`][install] from the

posts/2018-02-15-Rust-1.24.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ If you have a previous version of Rust installed via rustup, getting Rust
1111
1.24.0 is as easy as:
1212

1313
```bash
14-
$ rustup update stable
14+
rustup update stable
1515
```
1616

1717
If you don't have it already, you can [get `rustup`][install] from the
@@ -32,7 +32,7 @@ of "standard style." With this release, we're happy to announce that a *preview*
3232
can be used with 1.24 stable. To give it a try, do this:
3333

3434
```bash
35-
$ rustup component add rustfmt-preview
35+
rustup component add rustfmt-preview
3636
```
3737

3838
There are two important aspects here: first, you're using `rustup component

posts/2018-03-01-Rust-1.24.1.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ If you have a previous version of Rust installed via rustup, getting Rust
1111
1.24.1 is as easy as:
1212

1313
```bash
14-
$ rustup update stable
14+
rustup update stable
1515
```
1616

1717
If you don't have it already, you can [get `rustup`][install] from the

posts/2018-03-29-Rust-1.25.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ If you have a previous version of Rust installed via rustup, getting Rust
1111
1.25.0 is as easy as:
1212

1313
```bash
14-
$ rustup update stable
14+
rustup update stable
1515
```
1616

1717
If you don't have it already, you can [get `rustup`][install] from the

posts/2018-05-10-Rust-1.26.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ If you have a previous version of Rust installed via rustup, getting Rust
1111
1.26.0 is as easy as:
1212

1313
```bash
14-
$ rustup update stable
14+
rustup update stable
1515
```
1616

1717
If you don't have it already, you can [get `rustup`][install] from the

posts/2018-05-29-Rust-1.26.1.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ If you have a previous version of Rust installed via rustup, getting Rust
1111
1.26.1 is as easy as:
1212

1313
```bash
14-
$ rustup update stable
14+
rustup update stable
1515
```
1616

1717
If you don't have it already, you can [get `rustup`][install] from the
@@ -122,8 +122,8 @@ component, but this should be a one-time problem.
122122
This was unfortunately fixed too late to make it into 1.26 stable, so we added
123123
the patch for 1.26.1 to permit users to install Rust on these platforms.
124124

125-
```
126-
$ rustup update
125+
```console
126+
rustup update
127127
info: syncing channel updates for 'stable-x86_64-unknown-freebsd'
128128
info: latest update on 2018-05-10, rust version 1.26.0 (a77568041 2018-05-07)
129129
error: component 'rust-docs' for 'x86_64-unknown-freebsd' is unavailable for download

posts/2018-06-05-Rust-1.26.2.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ If you have a previous version of Rust installed via rustup, getting Rust
1111
1.26.2 is as easy as:
1212

1313
```bash
14-
$ rustup update stable
14+
rustup update stable
1515
```
1616

1717
If you don't have it already, you can [get `rustup`][install] from the

posts/2018-06-21-Rust-1.27.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ If you have a previous version of Rust installed via rustup, getting Rust
1111
1.27.0 is as easy as:
1212

1313
```bash
14-
$ rustup update stable
14+
rustup update stable
1515
```
1616

1717
If you don't have it already, you can [get `rustup`][install] from the

posts/2018-07-10-Rust-1.27.1.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ systems programming language focused on safety, speed, and concurrency.
1010
If you have a previous version of Rust installed via rustup, getting Rust
1111
1.27.1 is as easy as:
1212

13-
```
14-
$ rustup update stable
13+
```console
14+
rustup update stable
1515
```
1616

1717
If you don't have it already, you can [get `rustup`][install] from the

0 commit comments

Comments
 (0)