2018-02-15 16:34:22 +09:00
|
|
|
// Preserve two trailing whitespaces in doc comment,
|
|
|
|
// but trim any whitespaces in normal comment.
|
|
|
|
|
2018-02-13 18:27:54 +09:00
|
|
|
//! hello world
|
|
|
|
//! hello world
|
|
|
|
|
2018-02-15 16:41:47 +09:00
|
|
|
/// hello world
|
2018-02-13 18:27:54 +09:00
|
|
|
/// hello world
|
2018-02-15 16:34:22 +09:00
|
|
|
/// hello world
|
2018-02-13 18:27:54 +09:00
|
|
|
fn foo() {
|
|
|
|
// hello world
|
|
|
|
// hello world
|
|
|
|
let x = 3;
|
|
|
|
println!("x = {}", x);
|
|
|
|
}
|