fix(library/init/lean/attributes): typo
This commit is contained in:
parent
a55251618a
commit
451ab72eea
1 changed files with 1 additions and 1 deletions
|
|
@ -326,7 +326,7 @@ match env.getModuleIdxFor decl with
|
|||
| none := (attr.ext.getState env).find decl
|
||||
|
||||
def setParam {α : Type} (attr : ParametricAttribute α) (env : Environment) (decl : Name) (param : α) : Except String Environment :=
|
||||
if (env.getModuleIdxFor decl).isNone then
|
||||
if (env.getModuleIdxFor decl).isSome then
|
||||
Except.error ("invalid '" ++ toString attr.attr.name ++ "'.setParam, declaration is in an imported module")
|
||||
else if ((attr.ext.getState env).find decl).isSome then
|
||||
Except.error ("invalid '" ++ toString attr.attr.name ++ "'.setParam, attribute has already been set")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue