Skip to content

Commit 79759e4

Browse files
committed
pretend rust-lang/rust#27056 is already fixed
1 parent 6de71f1 commit 79759e4

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ lazy_static! {
1717
}
1818
```
1919
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.
2321
2422
# Semantic
2523

tests/test.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ extern crate lazy_static;
33
use std::collections::HashMap;
44

55
lazy_static! {
6-
#[doc="Documentation!"]
6+
/// Documentation!
77
pub static ref NUMBER: u32 = times_two(3);
88
static ref ARRAY_BOXES: [Box<u32>; 3] = [Box::new(1), Box::new(2), Box::new(3)];
9-
#[doc="More documentation!"]
9+
/// More documentation!
1010
pub static ref STRING: String = "hello".to_string();
1111
static ref HASHMAP: HashMap<u32, &'static str> = {
1212
let mut m = HashMap::new();

0 commit comments

Comments
 (0)