Skip to content

Commit df74ddd

Browse files
committed
comment
1 parent 5d93522 commit df74ddd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/libsyntax/ast_util.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ pub fn path_name_i(idents: &[ident]) -> ~str {
3030
idents.map(|i| token::interner_get(i.name)).connect("::")
3131
}
3232

33+
// totally scary function: ignores all but the last element, should have
34+
// a different name
3335
pub fn path_to_ident(p: @Path) -> ident { copy *p.idents.last() }
3436

3537
pub fn local_def(id: node_id) -> def_id {

0 commit comments

Comments
 (0)