Skip to content

Commit 3edd701

Browse files
committed
fix plural
1 parent ff59a68 commit 3edd701

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Lean/Elab/Tactic/Conv/Congr.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ where
200200
if explicit then
201201
let i := if i > 0 then i - 1 else i + xs.size
202202
if i < 0 || i ≥ xs.size then
203-
throwError "invalid '{tacticName}' tactic, application has {xs.size} arguments but the index is out of bounds"
203+
throwError "invalid '{tacticName}' tactic, application has {xs.size} argument(s) but the index is out of bounds"
204204
let idx := i.natAbs
205205
return (mkAppN f xs[0:idx], xs[idx:])
206206
else

tests/lean/run/conv_arg.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ example (f : {_ : Nat} → Nat → Nat) (h : m = m') : @f n m = @f n m' := by
7373
conv =>
7474
enter [1, 6]
7575

76-
/-- error: invalid 'arg' tactic, application has 2 arguments but the index is out of bounds -/
76+
/-- error: invalid 'arg' tactic, application has 2 argument(s) but the index is out of bounds -/
7777
#guard_msgs in
7878
example (f : {_ : Nat} → Nat → Nat) (h : m = m') : @f n m = @f n m' := by
7979
conv =>

0 commit comments

Comments
 (0)