2020-05-30 13:34:59 +02:00
|
|
|
//! # Hello World
|
|
|
|
//!
|
|
|
|
//! ```shell
|
|
|
|
//! $ cargo install
|
|
|
|
//! ```
|
|
|
|
//!
|
|
|
|
//! ```
|
|
|
|
//! # use foo;
|
|
|
|
//! foo::bar("Hello world");
|
|
|
|
//! ```
|
|
|
|
|
|
|
|
//!! ```
|
|
|
|
//!! foo::bar("Hello world");
|
|
|
|
//!! ```
|
|
|
|
|
|
|
|
//// ```
|
|
|
|
//// foo::bar("Hello world");
|
|
|
|
//// ```
|
|
|
|
|
|
|
|
// ```
|
|
|
|
// foo::bar("Hello world");
|
|
|
|
// ```
|
|
|
|
|
|
|
|
// make sure the color does not break
|
|
|
|
/// ```
|
|
|
|
/// # use foo;
|
|
|
|
/// foo::bar("Hello world");
|
|
|
|
/// ```
|
|
|
|
fn bar(s: &str) {
|
|
|
|
println!("{}", s);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// ```shell
|
|
|
|
/// $ cargo install
|
|
|
|
/// ```
|
|
|
|
///
|
|
|
|
/// ```edition2018,no_run
|
|
|
|
/// # use foo;
|
|
|
|
/// foo::bar("Hello world");
|
|
|
|
/// ```
|
|
|
|
///
|
|
|
|
/// ```
|
|
|
|
/// # use foo;
|
|
|
|
/// foo::bar("Hello world");
|
|
|
|
/// ```
|
|
|
|
|
|
|
|
//!! ```
|
|
|
|
//!! foo::bar("Hello world");
|
|
|
|
//!! ```
|
|
|
|
|
|
|
|
//// ```
|
|
|
|
//// foo::bar("Hello world");
|
|
|
|
//// ```
|
|
|
|
|
|
|
|
// ```
|
|
|
|
// foo::bar("Hello world");
|
|
|
|
// ```
|
|
|
|
|
|
|
|
/**
|
|
|
|
* ```shell
|
|
|
|
* $ cargo install
|
|
|
|
* ```
|
|
|
|
*
|
|
|
|
* ```edition2018,no_run
|
|
|
|
* # use foo;
|
|
|
|
* foo::bar("Hello world");
|
|
|
|
* ```
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
```
|
|
|
|
# use foo;
|
|
|
|
foo::bar("Hello world");
|
|
|
|
```
|
|
|
|
*/
|
|
|
|
|
|
|
|
/***
|
|
|
|
* ```
|
|
|
|
* foo::bar("Hello world");
|
|
|
|
* ```
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* ```
|
|
|
|
* foo::bar("Hello world");
|
|
|
|
* ```
|
|
|
|
*/
|
|
|
|
|
2020-06-02 16:03:37 +02:00
|
|
|
//! ```
|
|
|
|
//! // not hidden #
|
|
|
|
//! #![feature(x)]
|
|
|
|
//! # // hidden #
|
|
|
|
//! # #![feature(x)]
|
|
|
|
//! ```
|
|
|
|
|
|
|
|
/**
|
|
|
|
* ```
|
|
|
|
* // not hidden #
|
|
|
|
* #![feature(x)]
|
|
|
|
* # // hidden #
|
|
|
|
* # #![feature(x)]
|
|
|
|
* ```
|
|
|
|
*/
|
|
|
|
|
2020-06-05 05:06:49 +02:00
|
|
|
/// ```
|
|
|
|
/// println!("empty line");
|
|
|
|
///
|
|
|
|
/// println!("continue line");
|
|
|
|
/// ```
|
|
|
|
|
|
|
|
/**
|
|
|
|
* ```
|
|
|
|
* println!("empty line");
|
|
|
|
*
|
|
|
|
* println!("continue line");
|
|
|
|
* ```
|
|
|
|
*/
|