Skip to content

Commit c6db8a1

Browse files
authored
Rollup merge of rust-lang#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.
2 parents 1960f39 + e4d1096 commit c6db8a1

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
@@ -882,7 +882,7 @@ impl Ident {
882882
}
883883

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

0 commit comments

Comments
 (0)