Skip to content

Commit 8ff10de

Browse files
kim-emclaude
andcommitted
fix: mark unused variable with underscore
The `lastCharWasDigit` parameter in the fold lambda was not used in the function body, only tracked in the result tuple. Mark it as unused with an underscore prefix to satisfy the linter. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
1 parent dfa5306 commit 8ff10de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Init/Data/String/Slice.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1277,7 +1277,7 @@ def isNat (s : Slice) : Bool :=
12771277
false
12781278
else
12791279
-- Track: isFirst, lastWasUnderscore, lastCharWasDigit, valid
1280-
let result := s.foldl (fun (isFirst, lastWasUnderscore, lastCharWasDigit, valid) c =>
1280+
let result := s.foldl (fun (isFirst, lastWasUnderscore, _lastCharWasDigit, valid) c =>
12811281
let isDigit := c.isDigit
12821282
let isUnderscore := c = '_'
12831283
let newValid := valid && (isDigit || isUnderscore) &&

0 commit comments

Comments
 (0)