diff options
| author | Tshepang Mbambo <tshepang@gmail.com> | 2024-02-12 23:22:49 +0200 |
|---|---|---|
| committer | Tshepang Mbambo <tshepang@gmail.com> | 2024-02-12 23:22:49 +0200 |
| commit | 882396cbd0835491204d574f769f4d16763e8b95 (patch) | |
| tree | 2372c72c0068f3dc6abaa8d903ee3a431d2cb856 | |
| parent | bdc15928c8119a86d15e2946cb54851264607842 (diff) | |
| download | rust-882396cbd0835491204d574f769f4d16763e8b95.tar.gz rust-882396cbd0835491204d574f769f4d16763e8b95.zip | |
fix comment
| -rw-r--r-- | compiler/rustc_hir_typeck/src/method/suggest.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_hir_typeck/src/method/suggest.rs b/compiler/rustc_hir_typeck/src/method/suggest.rs index 7fc51e36a2b..0231d871ddd 100644 --- a/compiler/rustc_hir_typeck/src/method/suggest.rs +++ b/compiler/rustc_hir_typeck/src/method/suggest.rs @@ -1092,7 +1092,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() |
