Skip to content

Commit 3d951b3

Browse files
committed
add necessary text attribute to code block of panic output
1 parent dfb37cb commit 3d951b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/core/src/result.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1059,7 +1059,7 @@ impl<T, E> Result<T, E> {
10591059
/// message, and is more consistent with the default output of the [panic hook] provided by
10601060
/// `std`.
10611061
///
1062-
/// ```
1062+
/// ```text
10631063
/// thread 'expect_as_error_message' panicked at 'env variable `IMPORTANT_PATH` is not set: NotPresent', src/lib.rs:4:10
10641064
/// ```
10651065
///
@@ -1068,7 +1068,7 @@ impl<T, E> Result<T, E> {
10681068
/// represent bugs exclusively. But this extra information often looks confusing when presented
10691069
/// directly to users with the default `std` panic hook's report format:
10701070
///
1071-
/// ```
1071+
/// ```text
10721072
/// thread 'expect_as_precondition' panicked at 'env variable `IMPORTANT_PATH` is always set by `wrapper_script.sh`: NotPresent', src/lib.rs:4:10
10731073
/// ```
10741074
///

0 commit comments

Comments
 (0)