Mention string_slice in indexing_slicing documentation (#13763)

Close #13703

changelog: none
This commit is contained in:
Timo 2024-12-01 15:34:22 +00:00 committed by GitHub
commit 0a1ba2ca07
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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