Skip to content

Commit a79a520

Browse files
committed
Improve wording
1 parent b91dc03 commit a79a520

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

clippy_lints/src/casts/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ declare_clippy_lint! {
602602
/// Checks for the result of a `&self`-taking `as_ptr` being cast to a mutable pointer
603603
///
604604
/// ### Why is this bad?
605-
/// Since `as_ptr` took a `&self`, the pointer won't have write permissions, making it
605+
/// Since `as_ptr` takes a `&self`, the pointer probably won't have write permissions, making it
606606
/// unlikely that having it as a mutable pointer is correct.
607607
///
608608
/// ### Example
@@ -620,7 +620,7 @@ declare_clippy_lint! {
620620
#[clippy::version = "1.66.0"]
621621
pub AS_PTR_CAST_MUT,
622622
nursery,
623-
"casting the result of the `&self`-taking as_ptr to a mutabe point"
623+
"casting the result of the `&self`-taking `as_ptr` to a mutabe pointer"
624624
}
625625

626626
pub struct Casts {

src/docs/as_ptr_cast_mut.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Checks for the result of a `&self`-taking `as_ptr` being cast to a mutable pointer
33

44
### Why is this bad?
5-
Since `as_ptr` took a `&self`, the pointer won't have write permissions, making it
5+
Since `as_ptr` takes a `&self`, the pointer probably won't have write permissions, making it
66
unlikely that having it as a mutable pointer is correct.
77

88
### Example

0 commit comments

Comments
 (0)