From d6438f526681703641610549910e9db5d1d5a392 Mon Sep 17 00:00:00 2001 From: Lukas Bergdoll Date: Sat, 2 Mar 2024 14:07:25 +0100 Subject: [PATCH] Apply review comments --- library/core/src/macros/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/core/src/macros/mod.rs b/library/core/src/macros/mod.rs index 62ff3181ef8..3e25418f14f 100644 --- a/library/core/src/macros/mod.rs +++ b/library/core/src/macros/mod.rs @@ -115,7 +115,7 @@ macro_rules! assert_ne { /// Asserts that an expression matches the provided pattern. /// /// This macro is generally preferable to `assert!(matches!(value, pattern))`, because it can print -/// the debug representation, of the actual value shape that did not meet expectation. In contrast +/// the debug representation, of the actual value shape that did not meet expectation. In contrast, /// using [`assert!`] will only print that the expectation was not met, but not why. /// /// The pattern syntax is exactly the same as found in a match arm and the `matches!` macro. The @@ -383,7 +383,7 @@ macro_rules! debug_assert_ne { /// /// This macro is generally preferable to `debug_assert!(matches!(value, pattern))`, because it can /// print the debug representation, of the actual value shape that did not meet expectation. In -/// contrast using [`debug_assert!`] will only print that the expectation was not met, but not why. +/// contrast, using [`debug_assert!`] will only print that the expectation was not met, but not why. /// /// The pattern syntax is exactly the same as found in a match arm and the `matches!` macro. The /// optional if guard can be used to add additional checks that must be true for the matched value,