diff options
| author | bors <bors@rust-lang.org> | 2024-09-08 15:11:09 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-09-08 15:11:09 +0000 |
| commit | 0ee2650e07ccd0b87d945d38e52c84b4dbc752c8 (patch) | |
| tree | 01c0e9df85b9c141b46942bb1a365bf833d2b1d2 | |
| parent | bcf528bdefa8eb9a267a877414a54e478d684d02 (diff) | |
| parent | 25efc04ea554301374ac8e6270dbc7f65fead347 (diff) | |
| download | rust-0ee2650e07ccd0b87d945d38e52c84b4dbc752c8.tar.gz rust-0ee2650e07ccd0b87d945d38e52c84b4dbc752c8.zip | |
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")
| -rw-r--r-- | clippy_lints/src/ptr.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/ptr.rs b/clippy_lints/src/ptr.rs index 125f694996c..7d24d25dc2f 100644 --- a/clippy_lints/src/ptr.rs +++ b/clippy_lints/src/ptr.rs @@ -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. /// |
