mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-27 15:11:30 +00:00
Auto merge of #13370 - jtherrmann:master, r=dswij
Fix possible typo in `ptr_arg` lint This fixes a possible typo in the [`ptr_arg`](https://rust-lang.github.io/rust-clippy/master/index.html#/ptr_arg) lint. I'm new to Rust, so apologies if I misunderstood the meaning of this lint. changelog: [`ptr_arg`]: Fix typo ("size" -> "type")
This commit is contained in:
commit
0ee2650e07
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ declare_clippy_lint! {
|
|||
/// with the appropriate `.to_owned()`/`to_string()` calls.
|
||||
///
|
||||
/// ### Why is this bad?
|
||||
/// Requiring the argument to be of the specific size
|
||||
/// Requiring the argument to be of the specific type
|
||||
/// makes the function less useful for no benefit; slices in the form of `&[T]`
|
||||
/// or `&str` usually suffice and can be obtained from other types, too.
|
||||
///
|
||||
|
|
Loading…
Reference in a new issue