chore: fix typo

invalide -> invalid
This commit is contained in:
Reid Barton 2021-01-25 16:51:59 -05:00 committed by Leonardo de Moura
parent d408c835d2
commit ccc09d9cbf

View file

@ -95,7 +95,7 @@ private def inferConstType (c : Name) (us : List Level) : MetaM Expr := do
private def inferProjType (structName : Name) (idx : Nat) (e : Expr) : MetaM Expr := do
let failed {α} : Unit → MetaM α := fun _ =>
throwError! "invalide projection{indentExpr (mkProj structName idx e)}"
throwError! "invalid projection{indentExpr (mkProj structName idx e)}"
let structType ← inferType e
let structType ← whnf structType
matchConstStruct structType.getAppFn failed fun structVal structLvls ctorVal =>