Skip to content

Commit cb570d8

Browse files
hovinenbcopybara-github
authored andcommitted
Fix a spurious documentation example for Matcher::explain_match.
This example was adjusted incorrectly with the prior removal of `MatchExplanation`. The enclosing parentheses were kept even though they have no effect now. This change also removes the comment, since it was confusing and not helpful. PiperOrigin-RevId: 550539131
1 parent e45d943 commit cb570d8

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

googletest/src/matcher.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,7 @@ pub trait Matcher {
123123
///
124124
/// ```ignore
125125
/// fn explain_match(&self, actual: &Self::ActualT) -> String {
126-
/// (
127-
/// format!("which points to a value {}", self.expected.explain_match(actual.deref()))
128-
/// // ^^^^^^^^^^^^^^^^^^^^ Expands to "points to a value which ..."
129-
/// )
126+
/// format!("which points to a value {}", self.expected.explain_match(actual.deref()))
130127
/// }
131128
/// ```
132129
fn explain_match(&self, actual: &Self::ActualT) -> String {

0 commit comments

Comments
 (0)