Skip to content

Commit 8b6529e

Browse files
committed
Fix typos “an”→“a” and a few different ones that appeared in the same search
1 parent 21da42c commit 8b6529e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/ptr_eq.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ impl LateLintPass<'_> for PtrEq {
7474
}
7575
}
7676

77-
// If the given expression is a cast to an usize, return the lhs of the cast
77+
// If the given expression is a cast to a usize, return the lhs of the cast
7878
// E.g., `foo as *const _ as usize` returns `foo as *const _`.
7979
fn expr_as_cast_to_usize<'tcx>(cx: &LateContext<'tcx>, cast_expr: &'tcx Expr<'_>) -> Option<&'tcx Expr<'tcx>> {
8080
if cx.typeck_results().expr_ty(cast_expr) == cx.tcx.types.usize {

0 commit comments

Comments
 (0)