Mention string_slice in indexing_slicing documentation (#13763)
Close #13703 changelog: none
This commit is contained in:
commit
0a1ba2ca07
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue