Skip to content

Commit

Permalink
Change as_str → to_string in proc_macro::Ident::span() docs
Browse files Browse the repository at this point in the history
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
est31 committed Oct 28, 2020
1 parent 4d247ad commit 86d6920
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 @@ -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())
Expand Down

0 comments on commit 86d6920

Please sign in to comment.