diff options
| author | mibac138 <5672750+mibac138@users.noreply.github.com> | 2020-04-20 14:39:19 +0200 |
|---|---|---|
| committer | mibac138 <5672750+mibac138@users.noreply.github.com> | 2020-04-24 00:40:03 +0200 |
| commit | c3b6cc76d4ee290eae0f584b957ccdb4e7cdfe3f (patch) | |
| tree | 9af0adeb313d68fff9e765f3f7273d102f65d3d2 /src | |
| parent | 14b15521c52549ebbb113173b4abecd124b5a823 (diff) | |
| download | rust-c3b6cc76d4ee290eae0f584b957ccdb4e7cdfe3f.tar.gz rust-c3b6cc76d4ee290eae0f584b957ccdb4e7cdfe3f.zip | |
Minor formatting changes in `cfg-sanitize.md`
Diffstat (limited to 'src')
| -rw-r--r-- | src/doc/unstable-book/src/language-features/cfg-sanitize.md | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/src/doc/unstable-book/src/language-features/cfg-sanitize.md b/src/doc/unstable-book/src/language-features/cfg-sanitize.md index 949f24ab9c1..3442abf46df 100644 --- a/src/doc/unstable-book/src/language-features/cfg-sanitize.md +++ b/src/doc/unstable-book/src/language-features/cfg-sanitize.md @@ -11,26 +11,24 @@ depending on whether a particular sanitizer is enabled or not. ## Examples -``` rust +```rust #![feature(cfg_sanitize)] #[cfg(sanitize = "thread")] fn a() { - // ... + // ... } #[cfg(not(sanitize = "thread"))] fn a() { - // ... + // ... } fn b() { - if cfg!(sanitize = "leak") { - // ... - } else { - // ... - } + if cfg!(sanitize = "leak") { + // ... + } else { + // ... + } } - ``` - |
