From cf2015eb5402067b8a9c70c74c5a8e645bdc9f7a Mon Sep 17 00:00:00 2001 From: rivea0 <58330360+rivea0@users.noreply.github.com> Date: Mon, 3 Nov 2025 00:09:23 +0300 Subject: [PATCH] Fix typos in flow_control/match/binding --- src/flow_control/match/binding.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/flow_control/match/binding.md b/src/flow_control/match/binding.md index ecfbc80e70..9fc3aa470b 100644 --- a/src/flow_control/match/binding.md +++ b/src/flow_control/match/binding.md @@ -44,10 +44,10 @@ fn main() { match some_number() { // Got `Some` variant, match if its value, bound to `n`, // is equal to 42. - // Could also use `Some(42)` and print `"The Awnser: 42!"` + // Could also use `Some(42)` and print `"The Answer: 42!"` // but that would require changing `42` in 2 spots should // you ever wish to change it. - // 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}!"` // but that would not contribute to exhaustiveness checks. // (Although in this case that would not matter since // the next arm is a "catch-all" pattern)