sliced_string_as_bytes: fix typo in lint description
This commit is contained in:
parent
f51e18de30
commit
5aa8bc11cd
1 changed files with 1 additions and 1 deletions
|
|
@ -4367,7 +4367,7 @@ declare_clippy_lint! {
|
|||
|
||||
declare_clippy_lint! {
|
||||
/// ### What it does
|
||||
/// Checks for string slices immediantly followed by `as_bytes`.
|
||||
/// Checks for string slices immediately followed by `as_bytes`.
|
||||
///
|
||||
/// ### Why is this bad?
|
||||
/// It involves doing an unnecessary UTF-8 alignment check which is less efficient, and can cause a panic.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue