Fix typo in the has_surface_drop's doc comment · rust-lang/rust@67980dd (original) (raw)
File tree
1 file changed
lines changed
- compiler/rustc_middle/src/ty
1 file changed
lines changed
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1328,7 +1328,7 @@ impl<'tcx> Ty<'tcx> { | ||
1328 | 1328 | ) |
1329 | 1329 | } |
1330 | 1330 | |
1331 | -/// Checks whether values of this type `T` implements the `AsyncDrop` | |
1331 | +/// Checks whether values of this type `T` implements the `Drop` | |
1332 | 1332 | /// trait. |
1333 | 1333 | pub fn has_surface_drop(self, tcx: TyCtxt<'tcx>, param_env: ty::ParamEnv<'tcx>) -> bool { |
1334 | 1334 | self.could_have_surface_drop() && tcx.has_surface_drop_raw(param_env.and(self)) |