about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJane Lusby <jlusby@yaah.dev>2022-04-14 11:40:27 -0700
committerJane Lusby <jlusby@yaah.dev>2022-04-14 11:40:27 -0700
commit3d951b3d214f5d913153e2e695d7e6ba907bba62 (patch)
treee7a5c8a86e98363efd7cf6b05069a16a75204ab4
parentdfb37cb088ce116829e3d268a13c1e6cc3601295 (diff)
downloadrust-3d951b3d214f5d913153e2e695d7e6ba907bba62.tar.gz
rust-3d951b3d214f5d913153e2e695d7e6ba907bba62.zip
add necessary text attribute to code block of panic output
-rw-r--r--library/core/src/result.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/core/src/result.rs b/library/core/src/result.rs
index 564e5e34d6d..6189000cd36 100644
--- a/library/core/src/result.rs
+++ b/library/core/src/result.rs
@@ -1059,7 +1059,7 @@ impl<T, E> Result<T, E> {
     /// message, and is more consistent with the default output of the [panic hook] provided by
     /// `std`.
     ///
-    /// ```
+    /// ```text
     /// thread 'expect_as_error_message' panicked at 'env variable `IMPORTANT_PATH` is not set: NotPresent', src/lib.rs:4:10
     /// ```
     ///
@@ -1068,7 +1068,7 @@ impl<T, E> Result<T, E> {
     /// represent bugs exclusively. But this extra information often looks confusing when presented
     /// directly to users with the default `std` panic hook's report format:
     ///
-    /// ```
+    /// ```text
     /// thread 'expect_as_precondition' panicked at 'env variable `IMPORTANT_PATH` is always set by `wrapper_script.sh`: NotPresent', src/lib.rs:4:10
     /// ```
     ///