diff options
| author | est31 <MTest31@outlook.com> | 2020-10-28 01:55:17 +0100 |
|---|---|---|
| committer | est31 <MTest31@outlook.com> | 2020-10-29 03:46:14 +0100 |
| commit | e4d109613eb0c61ab528c9ff632c5807a259b505 (patch) | |
| tree | e498c038758ec3702f3524143276fe017e3a7cbf | |
| parent | 4d247ad7d3d2a9f72cd60e281f39b5d85bd6a463 (diff) | |
| download | rust-e4d109613eb0c61ab528c9ff632c5807a259b505.tar.gz rust-e4d109613eb0c61ab528c9ff632c5807a259b505.zip | |
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.
| -rw-r--r-- | library/proc_macro/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/proc_macro/src/lib.rs b/library/proc_macro/src/lib.rs index 139b3591206..ad8f6e86766 100644 --- a/library/proc_macro/src/lib.rs +++ b/library/proc_macro/src/lib.rs @@ -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()) |
