fixup a doc comment
This commit is contained in:
parent
3033c3ddbf
commit
16264a3a53
@ -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(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user