@@ -1388,7 +1388,7 @@ global data section (such as string constants and static items) can have the
1388
1388
` static ` lifetime. Static items are declared with the ` static ` keyword. A
1389
1389
static item must have a _ constant expression_ giving its definition.
1390
1390
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 ` ,
1392
1392
a number, or a type derived from those primitive types. The derived types are
1393
1393
references with the ` static ` lifetime, fixed-size arrays, tuples, and structs.
1394
1394
@@ -1412,16 +1412,16 @@ static bits_n_strings: BitsNStrings<'static> = BitsNStrings {
1412
1412
1413
1413
#### Mutable statics
1414
1414
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
1416
1416
be modified by the program. One of Rust's goals is to make concurrency bugs
1417
1417
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
1419
1419
reading or writing a mutable static variable. Care should be taken to ensure
1420
1420
that modifications to a mutable static are safe with respect to other tasks
1421
1421
running in the same process.
1422
1422
1423
1423
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).
1425
1425
1426
1426
```
1427
1427
# fn atomic_add(_: &mut uint, _: uint) -> uint { 2 }
0 commit comments