Skip to content

Commit 73c0c14

Browse files
improve grammer in comment sentence
Co-authored-by: dswij <dharmasw@outlook.com>
1 parent 73cd2cd commit 73c0c14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/doc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -916,7 +916,7 @@ impl<'a, 'tcx> Visitor<'tcx> for FindPanicUnwrap<'a, 'tcx> {
916916
}
917917
}
918918

919-
// check for `unwrap` and `expect` both `Option` and `Result`
919+
// check for `unwrap` and `expect` for both `Option` and `Result`
920920
if let Some(arglists) = method_chain_args(expr, &["unwrap"]).or(method_chain_args(expr, &["expect"])) {
921921
let receiver_ty = self.typeck_results.expr_ty(arglists[0].0).peel_refs();
922922
if is_type_diagnostic_item(self.cx, receiver_ty, sym::Option)

0 commit comments

Comments
 (0)