about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authormibac138 <5672750+mibac138@users.noreply.github.com>2020-04-20 14:39:19 +0200
committermibac138 <5672750+mibac138@users.noreply.github.com>2020-04-24 00:40:03 +0200
commitc3b6cc76d4ee290eae0f584b957ccdb4e7cdfe3f (patch)
tree9af0adeb313d68fff9e765f3f7273d102f65d3d2 /src
parent14b15521c52549ebbb113173b4abecd124b5a823 (diff)
downloadrust-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.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 {
+        // ...
+    }
 }
-
 ```
-