File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -17,9 +17,7 @@ lazy_static! {
17
17
}
18
18
```
19
19
20
- Metadata (such as doc comments) is allowed on each ref. (Until Rust 1.3 or so, you'll want
21
- to write docs explicitly as `#[doc = "Docs go here"]`, as with doc comments you'll get
22
- extra slashes. See rust-lang/rust#27056.)
20
+ Metadata (such as doc comments) is allowed on each ref.
23
21
24
22
# Semantic
25
23
Original file line number Diff line number Diff line change @@ -3,10 +3,10 @@ extern crate lazy_static;
3
3
use std:: collections:: HashMap ;
4
4
5
5
lazy_static ! {
6
- # [ doc= " Documentation!" ]
6
+ /// Documentation!
7
7
pub static ref NUMBER : u32 = times_two( 3 ) ;
8
8
static ref ARRAY_BOXES : [ Box <u32 >; 3 ] = [ Box :: new( 1 ) , Box :: new( 2 ) , Box :: new( 3 ) ] ;
9
- # [ doc= " More documentation!" ]
9
+ /// More documentation!
10
10
pub static ref STRING : String = "hello" . to_string( ) ;
11
11
static ref HASHMAP : HashMap <u32 , & ' static str > = {
12
12
let mut m = HashMap :: new( ) ;
You can’t perform that action at this time.
0 commit comments