]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_middle/src/mir/interpret/allocation.rs
fix most compiler/ doctests
[rust.git] / compiler / rustc_middle / src / mir / interpret / allocation.rs
index 8cfc5ed0a95d06147ceab0adbbb5a6bf0670bad2..5564852f305399e6f328b0311b3fc58131499ece 100644 (file)
@@ -770,11 +770,11 @@ fn find_bit(&self, start: Size, end: Size, is_init: bool) -> Option<Size> {
         ///
         /// Note that all examples below are written with 8 (instead of 64) bit blocks for simplicity,
         /// and with the least significant bit (and lowest block) first:
-        ///
-        ///          00000000|00000000
-        ///          ^      ^ ^      ^
-        ///   index: 0      7 8      15
-        ///
+        /// ```text
+        ///        00000000|00000000
+        ///        ^      ^ ^      ^
+        /// index: 0      7 8      15
+        /// ```
         /// Also, if not stated, assume that `is_init = true`, that is, we are searching for the first 1 bit.
         fn find_bit_fast(
             init_mask: &InitMask,