Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit d695e33

Browse files
committed
manual: Fix URLs to rustdoc pages
Now that the manual lives at /manual/, we need to use absolute URLs to link to rustdoc content.
1 parent da4c099 commit d695e33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/rust-analyzer/xtask/src/codegen.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ impl fmt::Display for Location {
117117
let path = self.file.strip_prefix(project_root()).unwrap().display().to_string();
118118
let path = path.replace('\\', "/");
119119
let name = self.file.file_name().unwrap();
120-
write!(f, " [{}]({}#{}) ", name.to_str().unwrap(), path, self.line)
120+
write!(f, " [{}](/{}#{}) ", name.to_str().unwrap(), path, self.line)
121121
}
122122
}
123123

0 commit comments

Comments
 (0)