Skip to content

Commit ab538ee

Browse files
committed
Document some macros.
1 parent 0d004a7 commit ab538ee

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/extra_assertions.rs

+4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
//! Macros for defining extra assertions that should only be checked in testing
22
//! and/or CI when the `testing_only_extra_assertions` feature is enabled.
33
4+
/// Simple macro that forwards to assert! when using
5+
/// testing_only_extra_assertions.
46
#[macro_export]
57
macro_rules! extra_assert {
68
( $cond:expr ) => {
@@ -15,6 +17,8 @@ macro_rules! extra_assert {
1517
};
1618
}
1719

20+
/// Simple macro that forwards to assert_eq! when using
21+
/// testing_only_extra_assertions.
1822
#[macro_export]
1923
macro_rules! extra_assert_eq {
2024
( $lhs:expr , $rhs:expr ) => {

0 commit comments

Comments
 (0)