Commit ccb30bf
committed
Auto merge of rust-lang#13554 - ageorgou:doc-links, r=xFrednet
Documentation fixes
- In [the page describing the lints](https://rust-lang.github.io/rust-clippy/master/index.html), the View Source links are incorrect. This PR removes the extra segment causing them to fail.
- Example before: https://github.com/rust-lang/rust-clippy/blob/master/clippy_lints/clippy_lints/src/absolute_paths.rs#L13
- Example after: https://github.com/rust-lang/rust-clippy/blob/master/clippy_lints/src/absolute_paths.rs#L13
- I think this was introduced in rust-lang#13269.
- I've only checked a few of the lints with the new template, but from what I can tell the metadata is generated in the same way for all of them. The `id_location` contains the full path of the lint declaration in the repository, which is why `clippy_lints` was repeated in the URL.
- Separately, fixing a typo in the explanation of `unnecessary_get_then_check`.
changelog: noneFile tree
2 files changed
+2
-2
lines changed- clippy_lints/src/methods
- util/gh-pages
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4046 | 4046 | | |
4047 | 4047 | | |
4048 | 4048 | | |
4049 | | - | |
| 4049 | + | |
4050 | 4050 | | |
4051 | 4051 | | |
4052 | 4052 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
189 | | - | |
| 189 | + | |
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
| |||
0 commit comments