]> git.proxmox.com Git - rustc.git/blobdiff - src/doc/rust-by-example/src/flow_control/match/binding.md
New upstream version 1.40.0+dfsg1
[rustc.git] / src / doc / rust-by-example / src / flow_control / match / binding.md
index e1aa232169a8e99b189c5b9091d2323606260fc0..0407b377745580a3a29aaf695c472e87fef0b8a2 100644 (file)
@@ -15,9 +15,9 @@ fn main() {
 
     match age() {
         0             => println!("I'm not born yet I guess"),
-        // Could `match` 1 ... 12 directly but then what age
+        // Could `match` 1 ..= 12 directly but then what age
         // would the child be? Instead, bind to `n` for the
-        // sequence of 1 .. 12. Now the age can be reported.
+        // sequence of 1 ..= 12. Now the age can be reported.
         n @ 1  ..= 12 => println!("I'm a child of age {:?}", n),
         n @ 13 ..= 19 => println!("I'm a teen of age {:?}", n),
         // Nothing bound. Return the result.