Skip to content

Commit 86d6920

Browse files
committed
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.
1 parent 4d247ad commit 86d6920

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/proc_macro/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -881,7 +881,7 @@ impl Ident {
881881
}
882882

883883
/// Returns the span of this `Ident`, encompassing the entire string returned
884-
/// by `as_str`.
884+
/// by [to_string](Self::to_string).
885885
#[stable(feature = "proc_macro_lib2", since = "1.29.0")]
886886
pub fn span(&self) -> Span {
887887
Span(self.0.span())

0 commit comments

Comments
 (0)