diff options
| author | Steve Klabnik <steve@steveklabnik.com> | 2015-12-29 15:55:09 -0500 |
|---|---|---|
| committer | Steve Klabnik <steve@steveklabnik.com> | 2015-12-29 15:55:09 -0500 |
| commit | 5a02d2293a6a5c9b5bfaa5e77bc541578943b3e2 (patch) | |
| tree | e1297cdb7e07a2e89a129b3051d03ffc561a6c96 | |
| parent | 9ef4030692811d7bc0105c2ad514e55dc90d2109 (diff) | |
| parent | d6275b3591a7715ba4c70f8f302372d6a4294566 (diff) | |
| download | rust-5a02d2293a6a5c9b5bfaa5e77bc541578943b3e2.tar.gz rust-5a02d2293a6a5c9b5bfaa5e77bc541578943b3e2.zip | |
Rollup merge of #30610 - steveklabnik:gh30600, r=sfackler
Also, make its panic description identical in wording to assert_eq. Fixes #30600
| -rw-r--r-- | src/libcore/macros.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libcore/macros.rs b/src/libcore/macros.rs index 03d3cb11b3e..154ca30c62d 100644 --- a/src/libcore/macros.rs +++ b/src/libcore/macros.rs @@ -135,10 +135,10 @@ macro_rules! debug_assert { ($($arg:tt)*) => (if cfg!(debug_assertions) { assert!($($arg)*); }) } -/// Asserts that two expressions are equal to each other, testing equality in -/// both directions. +/// Asserts that two expressions are equal to each other. /// -/// On panic, this macro will print the values of the expressions. +/// On panic, this macro will print the values of the expressions with their +/// debug representations. /// /// Unlike `assert_eq!`, `debug_assert_eq!` statements are only enabled in non /// optimized builds by default. An optimized build will omit all |
