Skip to content

Commit 5a02d22

Browse files
committed
Rollup merge of #30610 - steveklabnik:gh30600, r=sfackler
Also, make its panic description identical in wording to assert_eq. Fixes #30600
2 parents 9ef4030 + d6275b3 commit 5a02d22

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/libcore/macros.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,10 +135,10 @@ macro_rules! debug_assert {
135135
($($arg:tt)*) => (if cfg!(debug_assertions) { assert!($($arg)*); })
136136
}
137137

138-
/// Asserts that two expressions are equal to each other, testing equality in
139-
/// both directions.
138+
/// Asserts that two expressions are equal to each other.
140139
///
141-
/// On panic, this macro will print the values of the expressions.
140+
/// On panic, this macro will print the values of the expressions with their
141+
/// debug representations.
142142
///
143143
/// Unlike `assert_eq!`, `debug_assert_eq!` statements are only enabled in non
144144
/// optimized builds by default. An optimized build will omit all

0 commit comments

Comments
 (0)