about summary refs log tree commit diff
diff options
context:
space:
mode:
authoroli <github35764891676564198441@oli-obk.de>2020-11-19 11:41:47 +0000
committeroli <github35764891676564198441@oli-obk.de>2020-11-19 11:41:47 +0000
commit3d1f6769066978946d381ca77e82e48b652bad65 (patch)
tree2e4628ca7a5d7d523874e31997e8048432241024
parent173892c7765365ca47f920771ee7f743e2c4dfaa (diff)
downloadrust-3d1f6769066978946d381ca77e82e48b652bad65.tar.gz
rust-3d1f6769066978946d381ca77e82e48b652bad65.zip
Fix tidy
-rw-r--r--library/core/src/alloc/global.rs2
-rw-r--r--library/core/src/alloc/mod.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/library/core/src/alloc/global.rs b/library/core/src/alloc/global.rs
index e6fe1e89c10..4922028eee2 100644
--- a/library/core/src/alloc/global.rs
+++ b/library/core/src/alloc/global.rs
@@ -61,7 +61,7 @@ use crate::ptr;
 ///   More concretely, the following code example is unsound, irrespective of whether your
 ///   custom allocator allows counting how many allocations have happened.
 ///
-///   ```rust,ignore
+///   ```text
 ///   drop(Box::new(42));
 ///   let number_of_heap_allocs = /* call private allocator API */;
 ///   unsafe { std::intrinsics::assume(number_of_heap_allocs > 0); }
diff --git a/library/core/src/alloc/mod.rs b/library/core/src/alloc/mod.rs
index 47d5ad9ad56..d174842bcbf 100644
--- a/library/core/src/alloc/mod.rs
+++ b/library/core/src/alloc/mod.rs
@@ -100,7 +100,7 @@ pub unsafe trait AllocRef {
     /// More concretely, the following code example is unsound, irrespective of whether your
     /// custom allocator allows counting how many allocations have happened.
     ///
-    /// ```rust,ignore
+    /// ```text
     /// Global::dealloc(Global::alloc(some_layout));
     /// let number_of_heap_allocs = /* call private allocator API */;
     /// unsafe { std::intrinsics::assume(number_of_heap_allocs > 0); }