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.
This commit is contained in:
commit
6d7098f543
1 changed files with 1 additions and 1 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Reference in a new issue