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 { }
829
829
/// match a_number {
830
830
/// Some(x) if x <= 5 => println!("0 to 5 num = {}", x),
831
831
/// 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!(),
834
835
/// }
835
836
/// ```
836
837
///
@@ -848,7 +849,7 @@ mod loop_keyword { }
848
849
/// match get_inner {
849
850
/// Outer::Double(None, Some(st)) => println!("{}", st),
850
851
/// Outer::Single(opt) => println!("{:?}", opt),
851
- /// _ => the_rest (),
852
+ /// _ => panic! (),
852
853
/// }
853
854
/// ```
854
855
///
@@ -878,7 +879,7 @@ mod mod_keyword { }
878
879
/// ```rust
879
880
/// let capture = "hello";
880
881
/// let closure = move || {
881
- /// println!("we say {}", capture);
882
+ /// println!("rust says {}", capture);
882
883
/// };
883
884
/// ```
884
885
///
You can’t perform that action at this time.
0 commit comments