Skip to content

Commit 0a1ba2c

Browse files
authored
Mention string_slice in indexing_slicing documentation (rust-lang#13763)
Close rust-lang#13703 changelog: none
2 parents 1f966e9 + ce9c4f8 commit 0a1ba2c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

clippy_lints/src/indexing_slicing.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ declare_clippy_lint! {
5151
/// There are “checked” alternatives which do not panic, and can be used with `unwrap()` to make
5252
/// an explicit panic when it is desired.
5353
///
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+
///
5458
/// ### Example
5559
/// ```rust,no_run
5660
/// // Vector

0 commit comments

Comments
 (0)