Skip to content

Commit

Permalink
Fix typo in the has_surface_drop's doc comment
Browse files Browse the repository at this point in the history
Co-authored-by: Oli Scherer <github35764891676564198441@oli-obk.de>
  • Loading branch information
zetanumbers and oli-obk committed Apr 22, 2024
1 parent a9c7465 commit 67980dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_middle/src/ty/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 67980dd

Please sign in to comment.