Skip to content

Commit a2f44d1

Browse files
fgdoraiskim-em
andcommitted
feat: patch for std4#219 (#6622)
Co-authored-by: Scott Morrison <scott.morrison@gmail.com>
1 parent 485b736 commit a2f44d1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Mathlib/Tactic/ToAdditive.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ Id.run do
9696
if (s.get i₁).isUpper then
9797
if let some strs := endCapitalNames.find? (s.extract 0 i₁) then
9898
if let some (pref, newS) := strs.findSome?
99-
fun x ↦ (s.extract i₁ s.endPos).dropPrefix? x |>.map (x, ·.toString) then
99+
fun x : String ↦ (s.extract i₁ s.endPos).dropPrefix? x |>.map (x, ·.toString) then
100100
return splitCase newS 0 <| (s.extract 0 i₁ ++ pref)::r
101101
if !(s.get i₀).isUpper then
102102
return splitCase (s.extract i₁ s.endPos) 0 <| (s.extract 0 i₁)::r

0 commit comments

Comments
 (0)