Rollup merge of #120988 - tshepang:fix-comment, r=cjgillot

fix comment
This commit is contained in:
Matthias Krüger 2024-02-13 06:27:41 +01:00 committed by GitHub
commit 21d8fb272b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1086,7 +1086,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
inherent_impls_candidate.sort();
inherent_impls_candidate.dedup();
// number of type to shows at most.
// number of types to show at most
let limit = if inherent_impls_candidate.len() == 5 { 5 } else { 4 };
let type_candidates = inherent_impls_candidate
.iter()