mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
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:
parent
4d247ad7d3
commit
e4d109613e
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user