mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-27 23:20:39 +00:00
improve grammer in comment sentence
Co-authored-by: dswij <dharmasw@outlook.com>
This commit is contained in:
parent
73cd2cde8b
commit
73c0c14526
1 changed files with 1 additions and 1 deletions
|
@ -916,7 +916,7 @@ impl<'a, 'tcx> Visitor<'tcx> for FindPanicUnwrap<'a, 'tcx> {
|
|||
}
|
||||
}
|
||||
|
||||
// check for `unwrap` and `expect` both `Option` and `Result`
|
||||
// check for `unwrap` and `expect` for both `Option` and `Result`
|
||||
if let Some(arglists) = method_chain_args(expr, &["unwrap"]).or(method_chain_args(expr, &["expect"])) {
|
||||
let receiver_ty = self.typeck_results.expr_ty(arglists[0].0).peel_refs();
|
||||
if is_type_diagnostic_item(self.cx, receiver_ty, sym::Option)
|
||||
|
|
Loading…
Reference in a new issue