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):
3737// `()` if there are no bound variables
3838assert_eq! (try_match! (Var1 (42 ), Var1 (_ )), Ok (()));
3939
40- // The bound variable if there is exactly one bound variables
40+ // The bound variable if there is exactly one bound variable
4141assert_eq! (try_match! (Var1 (42 ), Var1 (x )), Ok (42 ));
4242assert_eq! (try_match! (Var1 (42 ), Var1 (x ) if x < 20 ), Err (Var1 (42 )));
4343
Original file line number Diff line number Diff line change 3737//! // `()` if there are no bound variables
3838//! assert_eq!(try_match!(Var1(42), Var1(_)), Ok(()));
3939//!
40- //! // The bound variable if there is exactly one bound variables
40+ //! // The bound variable if there is exactly one bound variable
4141//! assert_eq!(try_match!(Var1(42), Var1(x)), Ok(42));
4242//! assert_eq!(try_match!(Var1(42), Var1(x) if x < 20), Err(Var1(42)));
4343//!
You can’t perform that action at this time.
0 commit comments