Skip to content

Commit 181e5f3

Browse files
committed
syntax: use doc comments in the interner
1 parent 46d1af2 commit 181e5f3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/libsyntax/util/interner.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -126,14 +126,14 @@ impl RcStr {
126126
}
127127
}
128128

129-
// A StrInterner differs from Interner<String> in that it accepts
130-
// &str rather than RcStr, resulting in less allocation.
129+
/// A StrInterner differs from Interner<String> in that it accepts
130+
/// &str rather than RcStr, resulting in less allocation.
131131
pub struct StrInterner {
132132
map: RefCell<HashMap<RcStr, Name>>,
133133
vect: RefCell<Vec<RcStr> >,
134134
}
135135

136-
// when traits can extend traits, we should extend index<Name,T> to get []
136+
/// When traits can extend traits, we should extend index<Name,T> to get []
137137
impl StrInterner {
138138
pub fn new() -> StrInterner {
139139
StrInterner {
@@ -177,8 +177,8 @@ impl StrInterner {
177177
// lightweight way to get what I want, though not
178178
// necessarily the cleanest.
179179

180-
// create a gensym with the same name as an existing
181-
// entry.
180+
/// Create a gensym with the same name as an existing
181+
/// entry.
182182
pub fn gensym_copy(&self, idx : Name) -> Name {
183183
let new_idx = self.len() as Name;
184184
// leave out of map to avoid colliding

0 commit comments

Comments
 (0)