Mention string_slice in indexing_slicing documentation

This commit is contained in:
Samuel Tardieu 2024-11-30 15:57:39 +01:00
parent 650e0c8d3d
commit ce9c4f8dd1

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