Skip to content

Commit ff8d64c

Browse files
committed
Remove unknown languages from code block fences
1 parent 89bbae4 commit ff8d64c

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

0 commit comments

Comments
 (0)