Fix typo in the has_surface_drop's doc comment

Co-authored-by: Oli Scherer <github35764891676564198441@oli-obk.de>
This commit is contained in:
Daria Sukhonina 2024-04-22 15:44:01 +03:00 committed by GitHub
parent a9c7465997
commit 67980dd6fb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1328,7 +1328,7 @@ impl<'tcx> Ty<'tcx> {
)
}
/// Checks whether values of this type `T` implements the `AsyncDrop`
/// Checks whether values of this type `T` implements the `Drop`
/// trait.
pub fn has_surface_drop(self, tcx: TyCtxt<'tcx>, param_env: ty::ParamEnv<'tcx>) -> bool {
self.could_have_surface_drop() && tcx.has_surface_drop_raw(param_env.and(self))