Fix documentation for indexing_slicing (#16543)

Replace typo'd name with link to the referenced lint.

changelog: none
This commit is contained in:
dswij 2026-02-10 16:49:42 +00:00 committed by GitHub
commit ae8a9d1c64
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -44,7 +44,7 @@ declare_clippy_lint! {
/// Checks for usage of indexing or slicing that may panic at runtime.
///
/// This lint does not report on indexing or slicing operations
/// that always panic, clippy's `out_of_bound_indexing` already
/// that always panic, [out_of_bounds_indexing](#out_of_bounds_indexing) already
/// handles those cases.
///
/// ### Why restrict this?