about summary refs log tree commit diff
diff options
context:
space:
mode:
authorest31 <MTest31@outlook.com>2020-10-28 01:55:17 +0100
committerest31 <MTest31@outlook.com>2020-10-29 03:46:14 +0100
commite4d109613eb0c61ab528c9ff632c5807a259b505 (patch)
treee498c038758ec3702f3524143276fe017e3a7cbf
parent4d247ad7d3d2a9f72cd60e281f39b5d85bd6a463 (diff)
downloadrust-e4d109613eb0c61ab528c9ff632c5807a259b505.tar.gz
rust-e4d109613eb0c61ab528c9ff632c5807a259b505.zip
Change as_str → to_string in proc_macro::Ident::span() docs
There is no `as_str` function on Ident any more.

Also change it to an intra doc link while we're at it.
-rw-r--r--library/proc_macro/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/proc_macro/src/lib.rs b/library/proc_macro/src/lib.rs
index 139b3591206..ad8f6e86766 100644
--- a/library/proc_macro/src/lib.rs
+++ b/library/proc_macro/src/lib.rs
@@ -881,7 +881,7 @@ impl Ident {
     }
 
     /// Returns the span of this `Ident`, encompassing the entire string returned
-    /// by `as_str`.
+    /// by [`to_string`](Self::to_string).
     #[stable(feature = "proc_macro_lib2", since = "1.29.0")]
     pub fn span(&self) -> Span {
         Span(self.0.span())