Skip to content

Commit

Permalink
Rollup merge of rust-lang#78465 - est31:proc_macro_to_string, r=jyn514
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
JohnTitor authored Nov 5, 2020
2 parents adb3f65 + e4d1096 commit 9429067
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/proc_macro/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 9429067

Please sign in to comment.