about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTimo <30553356+y21@users.noreply.github.com>2024-12-01 15:34:22 +0000
committerGitHub <noreply@github.com>2024-12-01 15:34:22 +0000
commit0a1ba2ca07c9aa876ba9be5050310931cff9458a (patch)
treebbf743732040ac14ae524b4c60d32b586a716480
parent1f966e98db0c83fc76657fbc0bd50d11526787b1 (diff)
parentce9c4f8dd14b8b5b85bf796c26cedbdd517f162f (diff)
downloadrust-0a1ba2ca07c9aa876ba9be5050310931cff9458a.tar.gz
rust-0a1ba2ca07c9aa876ba9be5050310931cff9458a.zip
Mention `string_slice` in `indexing_slicing` documentation (#13763)
Close #13703

changelog: none
-rw-r--r--clippy_lints/src/indexing_slicing.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/clippy_lints/src/indexing_slicing.rs b/clippy_lints/src/indexing_slicing.rs
index ae2c3e0491f..15203b35b13 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