File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -545,23 +545,28 @@ pub mod builtin {
545
545
/// Assume there are two files in the same directory with the following
546
546
/// contents:
547
547
///
548
- /// File 'my_str .in':
548
+ /// File 'monkeys .in':
549
549
///
550
550
/// ```ignore (only-for-syntax-highlight)
551
- /// "Hello World!"
551
+ /// ['🙈', '🙊', '🙉']
552
+ /// .iter()
553
+ /// .cycle()
554
+ /// .take(6)
555
+ /// .collect::<String>()
552
556
/// ```
553
557
///
554
558
/// File 'main.rs':
555
559
///
556
560
/// ```ignore (cannot-doctest-external-file-dependency)
557
561
/// fn main() {
558
- /// let my_str = include!("my_str.in");
559
- /// println!("{}", my_str);
562
+ /// let my_string = include!("monkeys.in");
563
+ /// assert_eq!("🙈🙊🙉🙈🙊🙉", my_string);
564
+ /// println!("{}", my_string);
560
565
/// }
561
566
/// ```
562
567
///
563
- /// Compiling 'main.rs' and running the resulting binary will print "Hello
564
- /// World! ".
568
+ /// Compiling 'main.rs' and running the resulting binary will print
569
+ /// "🙈🙊🙉🙈🙊🙉 ".
565
570
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
566
571
#[ macro_export]
567
572
macro_rules! include { ( $file: expr) => ( { /* compiler built-in */ } ) }
You can’t perform that action at this time.
0 commit comments