Skip to content

Commit 19e814e

Browse files
committed
uhhh weird triple backticks
1 parent 96180d7 commit 19e814e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/doc/reference.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1388,7 +1388,7 @@ global data section (such as string constants and static items) can have the
13881388
`static` lifetime. Static items are declared with the `static` keyword. A
13891389
static item must have a _constant expression_ giving its definition.
13901390

1391-
Static items must be explicitly typed. The type may be ```bool```, ```char```,
1391+
Static items must be explicitly typed. The type may be `bool`, `char`,
13921392
a number, or a type derived from those primitive types. The derived types are
13931393
references with the `static` lifetime, fixed-size arrays, tuples, and structs.
13941394

@@ -1412,16 +1412,16 @@ static bits_n_strings: BitsNStrings<'static> = BitsNStrings {
14121412

14131413
#### Mutable statics
14141414

1415-
If a static item is declared with the ```mut``` keyword, then it is allowed to
1415+
If a static item is declared with the `mut` keyword, then it is allowed to
14161416
be modified by the program. One of Rust's goals is to make concurrency bugs
14171417
hard to run into, and this is obviously a very large source of race conditions
1418-
or other bugs. For this reason, an ```unsafe``` block is required when either
1418+
or other bugs. For this reason, an `unsafe` block is required when either
14191419
reading or writing a mutable static variable. Care should be taken to ensure
14201420
that modifications to a mutable static are safe with respect to other tasks
14211421
running in the same process.
14221422

14231423
Mutable statics are still very useful, however. They can be used with C
1424-
libraries and can also be bound from C libraries (in an ```extern``` block).
1424+
libraries and can also be bound from C libraries (in an `extern` block).
14251425

14261426
```
14271427
# fn atomic_add(_: &mut uint, _: uint) -> uint { 2 }

0 commit comments

Comments
 (0)