diff options
| author | Steve Klabnik <steve@steveklabnik.com> | 2015-12-29 11:01:35 -0500 |
|---|---|---|
| committer | Steve Klabnik <steve@steveklabnik.com> | 2015-12-29 11:01:35 -0500 |
| commit | d6275b3591a7715ba4c70f8f302372d6a4294566 (patch) | |
| tree | 6539a5a549d35adfb43aa86441d66d1c21ab1164 /src/libcore | |
| parent | 27a1834ce522e3ec7fe4726b1661de16ee30c503 (diff) | |
Correct the documentation of debug_assert_eq
Also, make its panic description identical in wording to assert_eq. Fixes #30600
Diffstat (limited to 'src/libcore')
| -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 |
