File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -829,8 +829,9 @@ mod loop_keyword { }
829829/// match a_number {
830830/// Some(x) if x <= 5 => println!("0 to 5 num = {}", x),
831831/// Some(x @ 6..=10) => println!("6 to 10 num = {}", x),
832- /// None => oh_no(),
833- /// _ => all_other_numbers(),
832+ /// None => panic!(),
833+ /// // all other numbers
834+ /// _ => panic!(),
834835/// }
835836/// ```
836837///
@@ -848,7 +849,7 @@ mod loop_keyword { }
848849/// match get_inner {
849850/// Outer::Double(None, Some(st)) => println!("{}", st),
850851/// Outer::Single(opt) => println!("{:?}", opt),
851- /// _ => the_rest (),
852+ /// _ => panic! (),
852853/// }
853854/// ```
854855///
@@ -878,7 +879,7 @@ mod mod_keyword { }
878879/// ```rust
879880/// let capture = "hello";
880881/// let closure = move || {
881- /// println!("we say {}", capture);
882+ /// println!("rust says {}", capture);
882883/// };
883884/// ```
884885///
You can’t perform that action at this time.
0 commit comments