Skip to content

Commit

Permalink
Mention string_slice in indexing_slicing documentation (#13763)
Browse files Browse the repository at this point in the history
Close #13703

changelog: none
  • Loading branch information
y21 authored Dec 1, 2024
2 parents 1f966e9 + ce9c4f8 commit 0a1ba2c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions clippy_lints/src/indexing_slicing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0a1ba2c

Please sign in to comment.