From e4d109613eb0c61ab528c9ff632c5807a259b505 Mon Sep 17 00:00:00 2001 From: est31 Date: Wed, 28 Oct 2020 01:55:17 +0100 Subject: [PATCH] =?UTF-8?q?Change=20as=5Fstr=20=E2=86=92=20to=5Fstring=20i?= =?UTF-8?q?n=20proc=5Fmacro::Ident::span()=20docs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit There is no `as_str` function on Ident any more. Also change it to an intra doc link while we're at it. --- library/proc_macro/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/proc_macro/src/lib.rs b/library/proc_macro/src/lib.rs index 139b3591206e7..ad8f6e86766e0 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())