We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
cfg-sanitize.md
1 parent 14b1552 commit c3b6cc7Copy full SHA for c3b6cc7
src/doc/unstable-book/src/language-features/cfg-sanitize.md
@@ -11,26 +11,24 @@ depending on whether a particular sanitizer is enabled or not.
11
12
## Examples
13
14
-``` rust
+```rust
15
#![feature(cfg_sanitize)]
16
17
#[cfg(sanitize = "thread")]
18
fn a() {
19
- // ...
+ // ...
20
}
21
22
#[cfg(not(sanitize = "thread"))]
23
24
25
26
27
fn b() {
28
- if cfg!(sanitize = "leak") {
29
30
- } else {
31
32
- }
+ if cfg!(sanitize = "leak") {
+ } else {
+ }
33
34
-
35
```
36
0 commit comments