chore: fix typo in trace.split.failure error message (#4431)

should be "failure" not "failures"

Co-authored-by: q r <qr@abc.local>
This commit is contained in:
hwatheod 2024-06-11 22:57:29 -07:00 committed by GitHub
parent ce6ebd1044
commit bedcbfcfee
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View file

@ -21,12 +21,12 @@ open Meta
throwErrorAt stx[2] "'split' tactic failed, select a single target to split"
if simplifyTarget then
liftMetaTactic fun mvarId => do
let some mvarIds ← splitTarget? mvarId | Meta.throwTacticEx `split mvarId "consider using `set_option trace.split.failures true`"
let some mvarIds ← splitTarget? mvarId | Meta.throwTacticEx `split mvarId "consider using `set_option trace.split.failure true`"
return mvarIds
else
let fvarId ← getFVarId hyps[0]!
liftMetaTactic fun mvarId => do
let some mvarIds ← splitLocalDecl? mvarId fvarId | Meta.throwTacticEx `split mvarId "consider using `set_option trace.split.failures true`"
let some mvarIds ← splitLocalDecl? mvarId fvarId | Meta.throwTacticEx `split mvarId "consider using `set_option trace.split.failure true`"
return mvarIds
| Location.wildcard =>
liftMetaTactic fun mvarId => do
@ -34,7 +34,7 @@ open Meta
for fvarId in fvarIds do
if let some mvarIds ← splitLocalDecl? mvarId fvarId then
return mvarIds
let some mvarIds ← splitTarget? mvarId | Meta.throwTacticEx `split mvarId "consider using `set_option trace.split.failures true`"
let some mvarIds ← splitTarget? mvarId | Meta.throwTacticEx `split mvarId "consider using `set_option trace.split.failure true`"
return mvarIds
end Lean.Elab.Tactic

View file

@ -11,7 +11,7 @@ termination_by state
decreasing_by sorry
/--
error: tactic 'split' failed, consider using `set_option trace.split.failures true`
error: tactic 'split' failed, consider using `set_option trace.split.failure true`
state : Nat
p :
(match h : step state with