Skip to content

Commit 160e6bb

Browse files
authored
Merge pull request #1971 from rivea0/fix-typos-in-binding
Fix typos in flow_control/match/binding
2 parents 8c7d8b1 + cf2015e commit 160e6bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/flow_control/match/binding.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ fn main() {
4444
match some_number() {
4545
// Got `Some` variant, match if its value, bound to `n`,
4646
// is equal to 42.
47-
// Could also use `Some(42)` and print `"The Awnser: 42!"`
47+
// Could also use `Some(42)` and print `"The Answer: 42!"`
4848
// but that would require changing `42` in 2 spots should
4949
// you ever wish to change it.
50-
// Could also use `Some(n) if n == 42` and print `"The Awnser: {n}!"`
50+
// Could also use `Some(n) if n == 42` and print `"The Answer: {n}!"`
5151
// but that would not contribute to exhaustiveness checks.
5252
// (Although in this case that would not matter since
5353
// the next arm is a "catch-all" pattern)

0 commit comments

Comments
 (0)