diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2020-04-28 17:55:48 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-28 17:55:48 +0200 |
| commit | 3d1f958b6cf1c3659baf3026c94945a3bf9297cc (patch) | |
| tree | 3afbdbc7ae5fb87a706e4f3b51ba734ab543a4d8 | |
| parent | 0bcdd5ffb814a109e8763836dccafbf5555baa00 (diff) | |
| parent | c3b6cc76d4ee290eae0f584b957ccdb4e7cdfe3f (diff) | |
| download | rust-3d1f958b6cf1c3659baf3026c94945a3bf9297cc.tar.gz rust-3d1f958b6cf1c3659baf3026c94945a3bf9297cc.zip | |
Rollup merge of #71637 - mibac138:cfg-sanitize, r=petrochenkov
Minor formatting changes in `cfg-sanitize.md`
| -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 { + // ... + } } - ``` - |
