]> git.lizzy.rs Git - rust.git/commitdiff
fixup a doc comment
authorMaybe Waffle <waffle.lapkin@gmail.com>
Wed, 28 Dec 2022 20:43:12 +0000 (20:43 +0000)
committerMaybe Waffle <waffle.lapkin@gmail.com>
Wed, 28 Dec 2022 20:43:12 +0000 (20:43 +0000)
crates/hir-ty/src/infer.rs

index 7cf4fb10506ffb47f27a615620b562efec1ea5b6..18e45511a4b49835bc0bab1c51c50b6be2e09b38 100644 (file)
@@ -688,7 +688,7 @@ fn insert_const_vars_shallow(&mut self, c: Const) -> Const {
         }
     }
 
-    /// Replaces Ty::Unknown by a new type var, so we can maybe still infer it.
+    /// Replaces `Ty::Error` by a new type var, so we can maybe still infer it.
     fn insert_type_vars_shallow(&mut self, ty: Ty) -> Ty {
         match ty.kind(Interner) {
             TyKind::Error => self.table.new_type_var(),