fixup a doc comment

This commit is contained in:
Maybe Waffle 2022-12-28 20:43:12 +00:00
parent 3033c3ddbf
commit 16264a3a53

View File

@ -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 { fn insert_type_vars_shallow(&mut self, ty: Ty) -> Ty {
match ty.kind(Interner) { match ty.kind(Interner) {
TyKind::Error => self.table.new_type_var(), TyKind::Error => self.table.new_type_var(),