Skip to content

Commit b3481d3

Browse files
authored
Typo (#532)
1 parent 1831370 commit b3481d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

posts/inside-rust/2020-03-04-recent-future-pattern-matching-improvements.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ fn should_explore(tcx: TyCtxt<'_>, hir_id: hir::HirId) -> bool {
124124
}
125125
```
126126

127-
Previously, when using `|` in a `match` expression, the `|` syntax was part of `match` itelf. With `or_patterns`, this is now part of patterns themselves, so you can nest OR-patterns arbitrarily, and use them in `let` statements too:
127+
Previously, when using `|` in a `match` expression, the `|` syntax was part of `match` itself. With `or_patterns`, this is now part of patterns themselves, so you can nest OR-patterns arbitrarily, and use them in `let` statements too:
128128

129129
```rust
130130
let Ok(x) | Err(x) = foo();

0 commit comments

Comments
 (0)