doc: fix typos (#2996)

This commit is contained in:
Marcus Rossel 2023-11-30 11:16:33 +01:00 committed by GitHub
parent 3a0edd05e6
commit 0ad611cf2f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View file

@ -774,8 +774,8 @@ instance : BEq Expr where
beq := Expr.eqv
/--
Return true iff `a` and `b` are equal.
Binder names and annotations are taking into account.
Return `true` iff `a` and `b` are equal.
Binder names and annotations are taken into account.
-/
@[extern "lean_expr_equal"]
opaque equal (a : @& Expr) (b : @& Expr) : Bool
@ -831,7 +831,7 @@ def isConst : Expr → Bool
| _ => false
/--
Return `true` if the given expression is a constant of the give name.
Return `true` if the given expression is a constant of the given name.
Examples:
- `` (.const `Nat []).isConstOf `Nat `` is `true`
- `` (.const `Nat []).isConstOf `False `` is `false`

View file

@ -28,12 +28,12 @@ partial def collectMVars (e : Expr) : StateRefT CollectMVars.State MetaM Unit :=
| none => pure ()
| some d => collectMVars (mkMVar d.mvarIdPending)
/-- Return metavariables in occurring the given expression. See `collectMVars` -/
/-- Return metavariables occurring in the given expression. See `collectMVars` -/
def getMVars (e : Expr) : MetaM (Array MVarId) := do
let (_, s) ← (collectMVars e).run {}
pure s.result
/-- Similar to getMVars, but removes delayed assignments. -/
/-- Similar to `getMVars`, but removes delayed assignments. -/
def getMVarsNoDelayed (e : Expr) : MetaM (Array MVarId) := do
let mvarIds ← getMVars e
mvarIds.filterM fun mvarId => not <$> mvarId.isDelayedAssigned