]> git.lizzy.rs Git - rust.git/commitdiff
Fix typo in comment: length_limit
authorJesse Ruderman <jruderman@gmail.com>
Mon, 12 Dec 2022 07:21:10 +0000 (23:21 -0800)
committerGitHub <noreply@github.com>
Mon, 12 Dec 2022 07:21:10 +0000 (23:21 -0800)
compiler/rustc_middle/src/ty/error.rs

index 4e113d72469c81d34eb10e25e952742ff9876174..f065c91a6b58b62e78e4c3c48b699f9fd7992220 100644 (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,