about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2020-04-28 17:55:48 +0200
committerGitHub <noreply@github.com>2020-04-28 17:55:48 +0200
commit3d1f958b6cf1c3659baf3026c94945a3bf9297cc (patch)
tree3afbdbc7ae5fb87a706e4f3b51ba734ab543a4d8
parent0bcdd5ffb814a109e8763836dccafbf5555baa00 (diff)
parentc3b6cc76d4ee290eae0f584b957ccdb4e7cdfe3f (diff)
downloadrust-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.md18
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 {
+        // ...
+    }
 }
-
 ```
-