Skip to content

Commit c3b6cc7

Browse files
committed
Minor formatting changes in cfg-sanitize.md
1 parent 14b1552 commit c3b6cc7

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

src/doc/unstable-book/src/language-features/cfg-sanitize.md

+8-10
Original file line numberDiff line numberDiff line change
@@ -11,26 +11,24 @@ depending on whether a particular sanitizer is enabled or not.
1111

1212
## Examples
1313

14-
``` rust
14+
```rust
1515
#![feature(cfg_sanitize)]
1616

1717
#[cfg(sanitize = "thread")]
1818
fn a() {
19-
// ...
19+
// ...
2020
}
2121

2222
#[cfg(not(sanitize = "thread"))]
2323
fn a() {
24-
// ...
24+
// ...
2525
}
2626

2727
fn b() {
28-
if cfg!(sanitize = "leak") {
29-
// ...
30-
} else {
31-
// ...
32-
}
28+
if cfg!(sanitize = "leak") {
29+
// ...
30+
} else {
31+
// ...
32+
}
3333
}
34-
3534
```
36-

0 commit comments

Comments
 (0)