From d6275b3591a7715ba4c70f8f302372d6a4294566 Mon Sep 17 00:00:00 2001 From: Steve Klabnik Date: Tue, 29 Dec 2015 11:01:35 -0500 Subject: [PATCH] Correct the documentation of debug_assert_eq Also, make its panic description identical in wording to assert_eq. Fixes #30600 --- src/libcore/macros.rs | 6 +++--- 1 file 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