Skip to content

Commit

Permalink
Fix typos “an”→“a” and a few different ones that appeared in the same…
Browse files Browse the repository at this point in the history
… search
  • Loading branch information
steffahn committed Aug 22, 2021
1 parent 21da42c commit 8b6529e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clippy_lints/src/ptr_eq.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 8b6529e

Please sign in to comment.