Skip to content

Commit 75762c4

Browse files
committed
docs: add link to span_lint in diagnostics.rs.
changelog: None
1 parent 97815d0 commit 75762c4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clippy_utils/src/diagnostics.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ pub fn span_lint<T: LintContext>(cx: &T, lint: &'static Lint, sp: impl Into<Mult
109109
});
110110
}
111111

112-
/// Same as `span_lint` but with an extra `help` message.
112+
/// Same as [`span_lint`] but with an extra `help` message.
113113
///
114114
/// Use this if you want to provide some general help but
115115
/// can't provide a specific machine applicable suggestion.
@@ -166,7 +166,7 @@ pub fn span_lint_and_help<T: LintContext>(
166166
});
167167
}
168168

169-
/// Like `span_lint` but with a `note` section instead of a `help` message.
169+
/// Like [`span_lint`] but with a `note` section instead of a `help` message.
170170
///
171171
/// The `note` message is presented separately from the main lint message
172172
/// and is attached to a specific span:
@@ -226,7 +226,7 @@ pub fn span_lint_and_note<T: LintContext>(
226226
});
227227
}
228228

229-
/// Like `span_lint` but allows to add notes, help and suggestions using a closure.
229+
/// Like [`span_lint`] but allows to add notes, help and suggestions using a closure.
230230
///
231231
/// If you need to customize your lint output a lot, use this function.
232232
/// If you change the signature, remember to update the internal lint `CollapsibleCalls`

0 commit comments

Comments
 (0)