We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8c7d8b1 + cf2015e commit 160e6bbCopy full SHA for 160e6bb
src/flow_control/match/binding.md
@@ -44,10 +44,10 @@ fn main() {
44
match some_number() {
45
// Got `Some` variant, match if its value, bound to `n`,
46
// is equal to 42.
47
- // Could also use `Some(42)` and print `"The Awnser: 42!"`
+ // Could also use `Some(42)` and print `"The Answer: 42!"`
48
// but that would require changing `42` in 2 spots should
49
// you ever wish to change it.
50
- // Could also use `Some(n) if n == 42` and print `"The Awnser: {n}!"`
+ // Could also use `Some(n) if n == 42` and print `"The Answer: {n}!"`
51
// but that would not contribute to exhaustiveness checks.
52
// (Although in this case that would not matter since
53
// the next arm is a "catch-all" pattern)
0 commit comments