about summary refs log tree commit diff
path: root/src/doc/guide-plugin.md
diff options
context:
space:
mode:
Diffstat (limited to 'src/doc/guide-plugin.md')
-rw-r--r--src/doc/guide-plugin.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/doc/guide-plugin.md b/src/doc/guide-plugin.md
index 1145235c5f8..eb3e4ce75c4 100644
--- a/src/doc/guide-plugin.md
+++ b/src/doc/guide-plugin.md
@@ -55,7 +55,7 @@ extern crate syntax;
 extern crate rustc;
 
 use syntax::codemap::Span;
-use syntax::parse::token::{IDENT, get_ident};
+use syntax::parse::token;
 use syntax::ast::{TokenTree, TtToken};
 use syntax::ext::base::{ExtCtxt, MacResult, DummyResult, MacExpr};
 use syntax::ext::build::AstBuilder;  // trait for expr_uint
@@ -71,7 +71,7 @@ fn expand_rn(cx: &mut ExtCtxt, sp: Span, args: &[TokenTree])
         ("I",    1)];
 
     let text = match args {
-        [TtToken(_, IDENT(s, _))] => get_ident(s).to_string(),
+        [TtToken(_, token::Ident(s, _))] => token::get_ident(s).to_string(),
         _ => {
             cx.span_err(sp, "argument should be a single identifier");
             return DummyResult::any(sp);