From ce9c4f8dd14b8b5b85bf796c26cedbdd517f162f Mon Sep 17 00:00:00 2001 From: Samuel Tardieu Date: Sat, 30 Nov 2024 15:57:39 +0100 Subject: [PATCH] Mention `string_slice` in `indexing_slicing` documentation --- clippy_lints/src/indexing_slicing.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/clippy_lints/src/indexing_slicing.rs b/clippy_lints/src/indexing_slicing.rs index ae2c3e0491f2..15203b35b137 100644 --- a/clippy_lints/src/indexing_slicing.rs +++ b/clippy_lints/src/indexing_slicing.rs @@ -51,6 +51,10 @@ declare_clippy_lint! { /// There are “checked” alternatives which do not panic, and can be used with `unwrap()` to make /// an explicit panic when it is desired. /// + /// ### Limitations + /// This lint does not check for the usage of indexing or slicing on strings. These are covered + /// by the more specific `string_slice` lint. + /// /// ### Example /// ```rust,no_run /// // Vector