Skip to content

Commit c69be48

Browse files
committed
fix doc compile fail
1 parent d5a4c62 commit c69be48

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/libstd/keyword_docs.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff 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
///

0 commit comments

Comments
 (0)