File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -126,14 +126,14 @@ impl RcStr {
126
126
}
127
127
}
128
128
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.
131
131
pub struct StrInterner {
132
132
map : RefCell < HashMap < RcStr , Name > > ,
133
133
vect : RefCell < Vec < RcStr > > ,
134
134
}
135
135
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 []
137
137
impl StrInterner {
138
138
pub fn new ( ) -> StrInterner {
139
139
StrInterner {
@@ -177,8 +177,8 @@ impl StrInterner {
177
177
// lightweight way to get what I want, though not
178
178
// necessarily the cleanest.
179
179
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.
182
182
pub fn gensym_copy ( & self , idx : Name ) -> Name {
183
183
let new_idx = self . len ( ) as Name ;
184
184
// leave out of map to avoid colliding
You can’t perform that action at this time.
0 commit comments