about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMara Bos <m-ou.se@m-ou.se>2020-11-05 10:29:42 +0100
committerGitHub <noreply@github.com>2020-11-05 10:29:42 +0100
commit6d7098f543f51611eab620b6d2e6f9d4167fc96e (patch)
tree8f32511d0cf45bdba888f15a1d019b437717c554
parent99229337a8b2ab1341d11dcf7188a8a55a0e0f21 (diff)
parente4d109613eb0c61ab528c9ff632c5807a259b505 (diff)
downloadrust-6d7098f543f51611eab620b6d2e6f9d4167fc96e.tar.gz
rust-6d7098f543f51611eab620b6d2e6f9d4167fc96e.zip
Rollup merge of #78465 - est31:proc_macro_to_string, r=jyn514
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 5a4b69cf6fc..03733d3b3ed 100644
--- a/library/proc_macro/src/lib.rs
+++ b/library/proc_macro/src/lib.rs
@@ -882,7 +882,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())