diff --git a/library/proc_macro/src/lib.rs b/library/proc_macro/src/lib.rs index de3866d92fc3f..c5a871e09a6ea 100644 --- a/library/proc_macro/src/lib.rs +++ b/library/proc_macro/src/lib.rs @@ -451,7 +451,7 @@ impl SourceFile { /// Also note that even if `is_real` returns `true`, if `--remap-path-prefix` was passed on /// the command line, the path as given may not actually be valid. /// - /// [`is_real`]: #method.is_real + /// [`is_real`]: Self::is_real #[unstable(feature = "proc_macro_span", issue = "54725")] pub fn path(&self) -> PathBuf { PathBuf::from(self.0.path())