Fix documentation for indexing_slicing

Replace typo'd name with link to the lint.
This commit is contained in:
Nora Breitmoser-Widdecke 2026-02-09 13:35:09 +01:00 committed by GitHub
parent 15e0ce9d69
commit 389294dcde
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?