diff options
| author | Frank Steffahn <frank.steffahn@stu.uni-kiel.de> | 2021-08-22 18:15:49 +0200 |
|---|---|---|
| committer | Frank Steffahn <frank.steffahn@stu.uni-kiel.de> | 2021-08-22 18:15:49 +0200 |
| commit | 2f9ddf3bc7cfa79d272b1409be80905be946d831 (patch) | |
| tree | a88f54853c40da892b1da6ae223176df5ba6469b /src/tools/clippy/clippy_lints | |
| parent | 2396fad0950980cd3bf53bc825cdfa79ec7fd85f (diff) | |
| download | rust-2f9ddf3bc7cfa79d272b1409be80905be946d831.tar.gz rust-2f9ddf3bc7cfa79d272b1409be80905be946d831.zip | |
Fix typos “an”→“a” and a few different ones that appeared in the same search
Diffstat (limited to 'src/tools/clippy/clippy_lints')
| -rw-r--r-- | src/tools/clippy/clippy_lints/src/ptr_eq.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/clippy/clippy_lints/src/ptr_eq.rs b/src/tools/clippy/clippy_lints/src/ptr_eq.rs index d6d7049fb61..3258c9fb3fe 100644 --- a/src/tools/clippy/clippy_lints/src/ptr_eq.rs +++ b/src/tools/clippy/clippy_lints/src/ptr_eq.rs @@ -74,7 +74,7 @@ impl LateLintPass<'_> for PtrEq { } } -// If the given expression is a cast to an usize, return the lhs of the cast +// If the given expression is a cast to a usize, return the lhs of the cast // E.g., `foo as *const _ as usize` returns `foo as *const _`. fn expr_as_cast_to_usize<'tcx>(cx: &LateContext<'tcx>, cast_expr: &'tcx Expr<'_>) -> Option<&'tcx Expr<'tcx>> { if cx.typeck_results().expr_ty(cast_expr) == cx.tcx.types.usize { |
