Rollup merge of #105593 - jruderman:patch-3, r=Dylan-DPC

Fix typo in comment: length_limit
This commit is contained in:
Matthias Krüger 2022-12-12 19:20:35 +01:00 committed by GitHub
commit 38d97d3ea7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1010,7 +1010,7 @@ pub fn short_ty_string(self, ty: Ty<'tcx>) -> (String, Option<PathBuf>) {
}
let mut short;
loop {
// Look for the longest properly trimmed path that still fits in lenght_limit.
// Look for the longest properly trimmed path that still fits in length_limit.
short = with_forced_trimmed_paths!(
FmtPrinter::new_with_limit(
self,