Skip to content

Commit 52e8415

Browse files
hovinenbcopybara-github
authored andcommitted
Add docstrings for some elements which were missing it.
Thus these elements will appear with the docstring in the generated Rustdoc. PiperOrigin-RevId: 559074717
1 parent 5ae93fb commit 52e8415

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

googletest/src/matcher.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15+
//! The components required to implement matchers.
16+
1517
use crate::internal::source_location::SourceLocation;
1618
use crate::internal::test_outcome::TestAssertionFailure;
1719
use crate::matchers::conjunction_matcher::ConjunctionMatcher;

googletest/src/matchers/contains_matcher.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ pub fn contains<T, InnerMatcherT>(inner: InnerMatcherT) -> ContainsMatcher<T, In
4444
ContainsMatcher { inner, count: None, phantom: Default::default() }
4545
}
4646

47+
/// A matcher which matches a container containing one or more elements a given
48+
/// inner [`Matcher`] matches.
4749
pub struct ContainsMatcher<T, InnerMatcherT> {
4850
inner: InnerMatcherT,
4951
count: Option<Box<dyn Matcher<ActualT = usize>>>,

0 commit comments

Comments
 (0)