about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMaybe Waffle <waffle.lapkin@gmail.com>2022-12-28 20:43:12 +0000
committerMaybe Waffle <waffle.lapkin@gmail.com>2022-12-28 20:43:12 +0000
commit16264a3a53765d692e55ba73c74bb3abc653cb4b (patch)
tree15b7f1c86488cfcc82c0dcdd67e1e3edca634641
parent3033c3ddbfcb0e42084ada8931e88d11eb98dee4 (diff)
downloadrust-16264a3a53765d692e55ba73c74bb3abc653cb4b.tar.gz
rust-16264a3a53765d692e55ba73c74bb3abc653cb4b.zip
fixup a doc comment
-rw-r--r--crates/hir-ty/src/infer.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/hir-ty/src/infer.rs b/crates/hir-ty/src/infer.rs
index 7cf4fb10506..18e45511a4b 100644
--- a/crates/hir-ty/src/infer.rs
+++ b/crates/hir-ty/src/infer.rs
@@ -688,7 +688,7 @@ impl<'a> InferenceContext<'a> {
         }
     }
 
-    /// 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(),