Skip to content

Commit

Permalink
parseutils: skipWhile: fix parameter name in doc comment (nim-lang#20523
Browse files Browse the repository at this point in the history
)
  • Loading branch information
ee7 authored Oct 9, 2022
1 parent fbc6975 commit 5661edd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pure/parseutils.nim
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ proc skipUntil*(s: string, until: char, start = 0): int {.inline.} =
while start+result < s.len and s[result+start] != until: inc(result)

proc skipWhile*(s: string, toSkip: set[char], start = 0): int {.inline.} =
## Skips all characters while one char from the set `token` is found.
## Skips all characters while one char from the set `toSkip` is found.
## Returns number of characters skipped.
runnableExamples:
doAssert skipWhile("Hello World", {'H', 'e'}) == 2
Expand Down

0 comments on commit 5661edd

Please sign in to comment.