File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ feature, which is enabled by default):
37
37
// `()` if there are no bound variables
38
38
assert_eq! (try_match! (Var1 (42 ), Var1 (_ )), Ok (()));
39
39
40
- // The bound variable if there is exactly one bound variables
40
+ // The bound variable if there is exactly one bound variable
41
41
assert_eq! (try_match! (Var1 (42 ), Var1 (x )), Ok (42 ));
42
42
assert_eq! (try_match! (Var1 (42 ), Var1 (x ) if x < 20 ), Err (Var1 (42 )));
43
43
Original file line number Diff line number Diff line change 37
37
//! // `()` if there are no bound variables
38
38
//! assert_eq!(try_match!(Var1(42), Var1(_)), Ok(()));
39
39
//!
40
- //! // The bound variable if there is exactly one bound variables
40
+ //! // The bound variable if there is exactly one bound variable
41
41
//! assert_eq!(try_match!(Var1(42), Var1(x)), Ok(42));
42
42
//! assert_eq!(try_match!(Var1(42), Var1(x) if x < 20), Err(Var1(42)));
43
43
//!
You can’t perform that action at this time.
0 commit comments