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.
This commit is contained in:
est31 2020-10-28 01:55:17 +01:00
parent 4d247ad7d3
commit e4d109613e

View File

@ -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())