Skip to content

Commit 40e4997

Browse files
authored
typo
"th eonly" to "the only"
1 parent 0ff733a commit 40e4997

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_ast_passes/src/ast_validation.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1578,7 +1578,7 @@ fn deny_equality_constraints(
15781578
None => (format!("<{assoc} = {ty}>"), trait_segment.span().shrink_to_hi()),
15791579
};
15801580
let removal_span = if generics.where_clause.predicates.len() == 1 {
1581-
// We're removing th eonly where bound left, remove the whole thing.
1581+
// We're removing the only where bound left, remove the whole thing.
15821582
generics.where_clause.span
15831583
} else {
15841584
let mut span = predicate_span;

0 commit comments

Comments
 (0)