Skip to content

Commit 8fc3ab2

Browse files
committed
rustdoc needs space after # to ignore
1 parent 5202ac5 commit 8fc3ab2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/doc/unstable-book/src/compiler-barriers.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ core). In traditional programs, this can only occur when a signal
3535
handler is registered. Consider the following code:
3636

3737
```rust
38-
#use std::sync::atomic::{AtomicBool, AtomicUsize};
39-
#use std::sync::atomic::{ATOMIC_BOOL_INIT, ATOMIC_USIZE_INIT};
40-
#use std::sync::atomic::Ordering;
38+
# use std::sync::atomic::{AtomicBool, AtomicUsize};
39+
# use std::sync::atomic::{ATOMIC_BOOL_INIT, ATOMIC_USIZE_INIT};
40+
# use std::sync::atomic::Ordering;
4141
static IMPORTANT_VARIABLE: AtomicUsize = ATOMIC_USIZE_INIT;
4242
static IS_READY: AtomicBool = ATOMIC_BOOL_INIT;
4343

@@ -65,9 +65,9 @@ Using a `compiler_barrier`, we can remedy this situation:
6565

6666
```rust
6767
#![feature(compiler_barriers)]
68-
#use std::sync::atomic::{AtomicBool, AtomicUsize};
69-
#use std::sync::atomic::{ATOMIC_BOOL_INIT, ATOMIC_USIZE_INIT};
70-
#use std::sync::atomic::Ordering;
68+
# use std::sync::atomic::{AtomicBool, AtomicUsize};
69+
# use std::sync::atomic::{ATOMIC_BOOL_INIT, ATOMIC_USIZE_INIT};
70+
# use std::sync::atomic::Ordering;
7171
use std::sync::atomic::compiler_barrier;
7272

7373
static IMPORTANT_VARIABLE: AtomicUsize = ATOMIC_USIZE_INIT;

0 commit comments

Comments
 (0)