We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
string_slice
indexing_slicing
2 parents 1f966e9 + ce9c4f8 commit 0a1ba2cCopy full SHA for 0a1ba2c
clippy_lints/src/indexing_slicing.rs
@@ -51,6 +51,10 @@ declare_clippy_lint! {
51
/// There are “checked” alternatives which do not panic, and can be used with `unwrap()` to make
52
/// an explicit panic when it is desired.
53
///
54
+ /// ### Limitations
55
+ /// This lint does not check for the usage of indexing or slicing on strings. These are covered
56
+ /// by the more specific `string_slice` lint.
57
+ ///
58
/// ### Example
59
/// ```rust,no_run
60
/// // Vector
0 commit comments