Skip to content

Commit

Permalink
Rollup merge of #116748 - scottmcm:oops-typo, r=fee1-dead
Browse files Browse the repository at this point in the history
Fix a spot I wrote the wrong word

I was reading this comment while I was looking at #116505, and it garden-path-sentence'd me, so fix that for people in the future.
  • Loading branch information
matthiaskrgr authored Oct 15, 2023
2 parents fb1f8dd + 5e572c7 commit 23d8847
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_middle/src/ty/sty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2848,7 +2848,7 @@ impl<'tcx> Ty<'tcx> {
/// Returning true means the type is known to be pure and `Copy+Clone`.
/// Returning `false` means nothing -- could be `Copy`, might not be.
///
/// This is mostly useful for optimizations, as there are the types
/// This is mostly useful for optimizations, as these are the types
/// on which we can replace cloning with dereferencing.
pub fn is_trivially_pure_clone_copy(self) -> bool {
match self.kind() {
Expand Down

0 comments on commit 23d8847

Please sign in to comment.