Skip to content

Commit 689b1f5

Browse files
committed
Remove unknown languages from code block fences
1 parent 04b03fa commit 689b1f5

File tree

139 files changed

+214
-214
lines changed

Some content is hidden

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

139 files changed

+214
-214
lines changed

content/Rust-1.15.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ fn main() {
7878

7979
This will output:
8080

81-
```text
81+
```
8282
serialized = {"name":"Ferris"}
8383
deserialized = Pet { name: "Ferris" }
8484
```

content/Rust-1.16.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ What does it do? Let's take a step back and talk about how `rustc` compiles your
3434
to producing the final binary. You can see each of these steps (and how much time and memory they take)
3535
by passing `-Z time-passes` to a nightly compiler:
3636

37-
```text
37+
```
3838
rustc +nightly hello.rs -Z time-passes
3939
time: 0.003; rss: 16MB parsing
4040
time: 0.000; rss: 16MB recursion limit
@@ -195,7 +195,7 @@ println!("{}", ffo);
195195
196196
Would give this error:
197197
198-
```text
198+
```
199199
error[E0425]: cannot find value `ffo` in this scope
200200
--> foo.rs:4:20
201201
|
@@ -277,7 +277,7 @@ When slicing a `&str`, [you'll see better errors]. For example, this code:
277277
278278
Is incorrect. It generates this error:
279279
280-
```text
280+
```
281281
thread 'str::test_slice_fail_boundary_1' panicked at 'byte index 4 is not
282282
a char boundary; it is inside 'α' (bytes 3..5) of `abcαβγ`'
283283
```

content/Rust-1.17.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ your preferences.
234234
Backtraces [now have nicer formatting](https://github.com/rust-lang/rust/pull/38165), eliding
235235
some things by default. For example, the full backtrace:
236236

237-
```text
237+
```
238238
thread 'main' panicked at 'explicit panic', foo.rs:2
239239
stack backtrace:
240240
1: 0x55c39a23372c - std::sys::imp::backtrace::tracing::imp::write::hf33ae72d0baa11ed
@@ -261,7 +261,7 @@ stack backtrace:
261261

262262
is now instead
263263

264-
```text
264+
```
265265
thread 'main' panicked at 'explicit panic', foo.rs:2
266266
stack backtrace:
267267
0: std::sys::imp::backtrace::tracing::imp::unwind_backtrace

content/Rust-1.20.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ Stability is a property of sorting algorithms that may or may not matter to you,
186186
but now you have both options! Here's a brief summary: imagine we had a list
187187
of words like this:
188188

189-
```text
189+
```
190190
rust
191191
crate
192192
package
@@ -196,7 +196,7 @@ cargo
196196
Two of these words, `cargo` and `crate`, both start with the letter `c`. A stable
197197
sort that sorts only on the first letter must produce this result:
198198

199-
```text
199+
```
200200
crate
201201
cargo
202202
package
@@ -207,7 +207,7 @@ That is, because `crate` came before `cargo` in the original list, it must also
207207
before it in the final list. An unstable sort could provide that result, but could
208208
also give this answer too:
209209

210-
```text
210+
```
211211
cargo
212212
crate
213213
package

content/Rust-1.21.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ fn main() {
6565

6666
In previous versions of Rust, this would fail to compile:
6767

68-
```text
68+
```
6969
error[E0597]: borrowed value does not live long enough
7070
--> src/main.rs:4:14
7171
|

content/Rust-1.26.1.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ component, but this should be a one-time problem.
126126
This was unfortunately fixed too late to make it into 1.26 stable, so we added
127127
the patch for 1.26.1 to permit users to install Rust on these platforms.
128128

129-
```console
129+
```
130130
$ rustup update
131131
info: syncing channel updates for 'stable-x86_64-unknown-freebsd'
132132
info: latest update on 2018-05-10, rust version 1.26.0 (a77568041 2018-05-07)

content/Rust-1.26.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ fn foo() {
155155

156156
when compiled, gives this error:
157157

158-
```text
158+
```
159159
error[E0308]: mismatched types
160160
--> src/main.rs:5:5
161161
|
@@ -241,7 +241,7 @@ fn hello(arg: &Option<String>) {
241241

242242
If you tried to compile this in Rust 1.25, you'd get this error:
243243

244-
```text
244+
```
245245
error[E0658]: non-reference pattern used to match a reference (see issue #42640)
246246
--> src/main.rs:6:9
247247
|
@@ -268,7 +268,7 @@ fn hello(arg: &Option<String>) {
268268

269269
We added the `&`s the compiler complained about. Let's try to compile again:
270270

271-
```text
271+
```
272272
error[E0507]: cannot move out of borrowed content
273273
--> src/main.rs:6:9
274274
|
@@ -421,7 +421,7 @@ fn main() {
421421
What does this program do? The answer: nothing. The warning we get when
422422
compiling has a hint:
423423

424-
```text
424+
```
425425
warning: literal out of range for u8
426426
--> src/main.rs:6:17
427427
|

content/Rust-1.27.1.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ systems programming language focused on safety, speed, and concurrency.
1414
If you have a previous version of Rust installed via rustup, getting Rust
1515
1.27.1 is as easy as:
1616

17-
```console
17+
```
1818
$ rustup update stable
1919
```
2020

content/Rust-1.29.1.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ systems programming language focused on safety, speed, and concurrency.
1414
If you have a previous version of Rust installed via rustup, getting Rust
1515
1.29.1 is as easy as:
1616

17-
```console
17+
```
1818
$ rustup update stable
1919
```
2020

content/Rust-1.29.2.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ systems programming language focused on safety, speed, and concurrency.
1414
If you have a previous version of Rust installed via rustup, getting Rust
1515
1.29.2 is as easy as:
1616

17-
```console
17+
```
1818
$ rustup update stable
1919
```
2020

content/Rust-1.29.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ fn main() {
5454
Here, we're calling `do_something` a hundred times. But we never use the variable `i`.
5555
And so Rust warns:
5656

57-
```console
57+
```
5858
$ cargo build
5959
Compiling myprogram v0.1.0 (file:///path/to/myprogram)
6060
warning: unused variable: `i`
@@ -71,7 +71,7 @@ warning: unused variable: `i`
7171
See how it suggests that we use `_i` as a name instead? We can automatically
7272
apply that suggestion with `cargo fix`:
7373

74-
```console
74+
```
7575
$ cargo fix
7676
Checking myprogram v0.1.0 (file:///C:/Users/steve/tmp/fix)
7777
Fixing src\main.rs (1 fix)
@@ -122,13 +122,13 @@ a reference is a no-op, and so this is almost certainly a bug.
122122

123123
We can get the preview of Clippy from Rustup:
124124

125-
```console
125+
```
126126
$ rustup component add clippy-preview
127127
```
128128

129129
and then run it:
130130

131-
```console
131+
```
132132
$ cargo clippy
133133
error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing.
134134
--> src\main.rs:5:5

content/Rust-1.30.0.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ struct Demo {
163163

164164
used to give this error:
165165

166-
```text
166+
```
167167
error[E0277]: the trait bound `std::thread::Thread: _IMPL_SERIALIZE_FOR_Demo::_serde::Serialize` is not satisfied
168168
--> src/main.rs:3:10
169169
|
@@ -173,7 +173,7 @@ error[E0277]: the trait bound `std::thread::Thread: _IMPL_SERIALIZE_FOR_Demo::_s
173173

174174
Now it will give this one:
175175

176-
```text
176+
```
177177
error[E0277]: the trait bound `std::thread::Thread: serde::Serialize` is not satisfied
178178
--> src/main.rs:7:5
179179
|

content/Rust-1.30.1.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ systems programming language focused on safety, speed, and concurrency.
1414
If you have a previous version of Rust installed via rustup, getting Rust
1515
1.30.1 is as easy as:
1616

17-
```console
17+
```
1818
$ rustup update stable
1919
```
2020

content/Rust-1.31-and-rust-2018.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ We'll be covering all of this and more in this post.
7171

7272
Let's create a new project with Cargo:
7373

74-
```console
74+
```
7575
$ cargo new foo
7676
```
7777

@@ -131,7 +131,7 @@ fn main() {
131131

132132
In older Rust, this is a compile-time error:
133133

134-
```text
134+
```
135135
error[E0502]: cannot borrow `x` as mutable because it is also borrowed as immutable
136136
--> src/main.rs:5:18
137137
|
@@ -164,7 +164,7 @@ fn main() {
164164

165165
Older Rust will give you this error:
166166

167-
```text
167+
```
168168
error[E0502]: cannot borrow `x` as mutable because it is also borrowed as immutable
169169
--> src/main.rs:5:18
170170
|
@@ -179,7 +179,7 @@ error[E0502]: cannot borrow `x` as mutable because it is also borrowed as immuta
179179

180180
With Rust 2018, this error changes for the better:
181181

182-
```text
182+
```
183183
error[E0502]: cannot borrow `x` as mutable because it is also borrowed as immutable
184184
--> src/main.rs:5:13
185185
|

content/Rust-1.31.1.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ systems programming language focused on safety, speed, and concurrency.
1414
If you have a previous version of Rust installed via rustup, getting Rust
1515
1.31.1 is as easy as:
1616

17-
```console
17+
```
1818
$ rustup update stable
1919
```
2020

@@ -46,12 +46,12 @@ pub struct MyStruct { /* ... */ }
4646
[Go to definition was fixed for std types](https://github.com/rust-lang/rls/pull/1171):
4747
Before, using the RLS on `HashMap`, for example, tried to open this file
4848

49-
```text
49+
```
5050
~/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/libstd/collections/hash/map.rs
5151
```
5252

5353
and now RLS goes to the correct location (for Rust 1.31, note the extra `src`):
5454

55-
```text
55+
```
5656
~/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/libstd/collections/hash/map.rs
5757
```

content/Rust-1.32.0.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ efficient software.
1515
If you have a previous version of Rust installed via rustup, getting Rust
1616
1.32.0 is as easy as:
1717

18-
```console
18+
```
1919
$ rustup update stable
2020
```
2121

@@ -67,7 +67,7 @@ fn main() {
6767

6868
If you run this program, you'll see:
6969

70-
```text
70+
```
7171
[src/main.rs:4] x = 5
7272
```
7373

@@ -111,7 +111,7 @@ fn factorial(n: u32) -> u32 {
111111
We want to log `n` on each iteration, as well as have some kind of context
112112
for each of the branches. We see this output for `factorial(4)`:
113113

114-
```text
114+
```
115115
n: 4
116116
n: 3
117117
n: 2
@@ -141,7 +141,7 @@ fn factorial(n: u32) -> u32 {
141141
We simply wrap each of the various expressions we want to print with the macro. We
142142
get this output instead:
143143

144-
```text
144+
```
145145
[src/main.rs:3] n <= 1 = false
146146
[src/main.rs:3] n <= 1 = false
147147
[src/main.rs:3] n <= 1 = false

content/Rust-1.33.0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ efficient software.
1515
If you have a previous version of Rust installed via rustup, getting Rust
1616
1.33.0 is as easy as:
1717

18-
```console
18+
```
1919
$ rustup update stable
2020
```
2121

content/Rust-1.34.0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ efficient software.
1515
If you have a previous version of Rust installed via rustup, getting Rust
1616
1.34.0 is as easy as:
1717

18-
```console
18+
```
1919
$ rustup update stable
2020
```
2121

content/Rust-1.34.1.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Rust is a programming language that is empowering everyone to build reliable and
1414
If you have a previous version of Rust installed via rustup,
1515
getting Rust 1.34.1 and rustup 1.18.1 is as easy as:
1616

17-
```console
17+
```
1818
$ rustup update stable
1919
```
2020

content/Rust-1.34.2.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ efficient software.
1515
If you have a previous version of Rust installed via rustup, getting Rust
1616
1.34.2 is as easy as:
1717

18-
```console
18+
```
1919
$ rustup update stable
2020
```
2121

content/Rust-1.35.0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ programming language that is empowering everyone to build reliable and efficient
1313

1414
If you have a previous version of Rust installed via rustup, getting Rust 1.35.0 is as easy as:
1515

16-
```console
16+
```
1717
$ rustup update stable
1818
```
1919

content/Rust-1.36.0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Rust is a programming language that is empowering everyone to build reliable and
1313

1414
If you have a previous version of Rust installed via rustup, getting Rust 1.36.0 is as easy as:
1515

16-
```console
16+
```
1717
$ rustup update stable
1818
```
1919

content/Rust-1.37.0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ The Rust team is happy to announce a new version of Rust, 1.37.0. Rust is a prog
1212

1313
If you have a previous version of Rust installed via rustup, getting Rust 1.37.0 is as easy as:
1414

15-
```console
15+
```
1616
$ rustup update stable
1717
```
1818

content/Rust-1.38.0.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ The Rust team is happy to announce a new version of Rust, 1.38.0. Rust is a prog
1212

1313
If you have a previous version of Rust installed via rustup, getting Rust 1.38.0 is as easy as:
1414

15-
```console
15+
```
1616
$ rustup update stable
1717
```
1818

@@ -80,7 +80,7 @@ fn main() {
8080

8181
This prints:
8282

83-
```text
83+
```
8484
Initializing an instance of i32
8585
Initializing an instance of alloc::string::String
8686
```

0 commit comments

Comments
 (0)