Skip to content

Commit 67980dd

Browse files
zetanumbersoli-obk
andauthored
Fix typo in the has_surface_drop's doc comment
Co-authored-by: Oli Scherer <github35764891676564198441@oli-obk.de>
1 parent a9c7465 commit 67980dd

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_middle/src/ty

1 file changed

+1
-1
lines changed

Diff for: compiler/rustc_middle/src/ty/util.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1328,7 +1328,7 @@ impl<'tcx> Ty<'tcx> {
13281328
)
13291329
}
13301330

1331-
/// Checks whether values of this type `T` implements the `AsyncDrop`
1331+
/// Checks whether values of this type `T` implements the `Drop`
13321332
/// trait.
13331333
pub fn has_surface_drop(self, tcx: TyCtxt<'tcx>, param_env: ty::ParamEnv<'tcx>) -> bool {
13341334
self.could_have_surface_drop() && tcx.has_surface_drop_raw(param_env.and(self))

0 commit comments

Comments
 (0)