Skip to content

Commit

Permalink
doc: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
yvt committed May 3, 2023
1 parent 3091d8b commit 8fb7853
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ feature, which is enabled by default):
// `()` if there are no bound variables
assert_eq!(try_match!(Var1(42), Var1(_)), Ok(()));

// The bound variable if there is exactly one bound variables
// The bound variable if there is exactly one bound variable
assert_eq!(try_match!(Var1(42), Var1(x)), Ok(42));
assert_eq!(try_match!(Var1(42), Var1(x) if x < 20), Err(Var1(42)));

Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
//! // `()` if there are no bound variables
//! assert_eq!(try_match!(Var1(42), Var1(_)), Ok(()));
//!
//! // The bound variable if there is exactly one bound variables
//! // The bound variable if there is exactly one bound variable
//! assert_eq!(try_match!(Var1(42), Var1(x)), Ok(42));
//! assert_eq!(try_match!(Var1(42), Var1(x) if x < 20), Err(Var1(42)));
//!
Expand Down

0 comments on commit 8fb7853

Please sign in to comment.