about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLukas Bergdoll <lukas.bergdoll@gmail.com>2024-03-03 15:30:46 +0100
committerGitHub <noreply@github.com>2024-03-03 15:30:46 +0100
commitc45f0a977abc021ad3454930e2728d815def4938 (patch)
treed87d91cd77bf508198e03d7ac628e98a014e1851
parentd6438f526681703641610549910e9db5d1d5a392 (diff)
downloadrust-c45f0a977abc021ad3454930e2728d815def4938.tar.gz
rust-c45f0a977abc021ad3454930e2728d815def4938.zip
Apply suggestions from code review
Co-authored-by: Josh Stone <cuviper@gmail.com>
-rw-r--r--library/core/src/macros/mod.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/library/core/src/macros/mod.rs b/library/core/src/macros/mod.rs
index 3e25418f14f..643968c35e8 100644
--- a/library/core/src/macros/mod.rs
+++ b/library/core/src/macros/mod.rs
@@ -115,8 +115,8 @@ 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,
-/// using [`assert!`] will only print that the expectation was not met, but not why.
+/// the debug representation of the actual value shape that did not meet expectations. In contrast,
+/// using [`assert!`] will only print that expectations were 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,
@@ -382,8 +382,8 @@ macro_rules! debug_assert_ne {
 /// Asserts that an expression matches the provided pattern.
 ///
 /// 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.
+/// print the debug representation of the actual value shape that did not meet expectations. In
+/// contrast, using [`debug_assert!`] will only print that expectations were 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,