tweak comment
This commit is contained in:
parent
feb3e9fd5f
commit
a7c1ea96c4
@ -51,7 +51,7 @@ fn check_expr(&mut self, cx: &lint::LateContext<'a, 'tcx>, expr: &'tcx hir::Expr
|
||||
None => return,
|
||||
};
|
||||
|
||||
// Check if the parameter to ptr.offset is a cast from usize to isize
|
||||
// Check if the argument to ptr.offset is a cast from usize
|
||||
let cast_lhs_expr = match expr_as_cast_from_usize(cx, arg_expr) {
|
||||
Some(cast_lhs_expr) => cast_lhs_expr,
|
||||
None => return,
|
||||
|
Loading…
Reference in New Issue
Block a user