Skip to content

Commit

Permalink
small efficiency improvement
Browse files Browse the repository at this point in the history
Co-authored-by: zerbina <[email protected]>
  • Loading branch information
saem and zerbina authored Oct 20, 2023
1 parent 78f24f8 commit 2a5cb71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/dust/spec.nim
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ proc next*(remains: Remains): PNode =

proc massageMessage*(s: string): string =
result = s.splitLines()[0]
for c in {';', ':'}:
for c in [';', ':']:
let i = find(result, c)
if i != -1:
result = result[0 .. i - 1]
Expand Down

0 comments on commit 2a5cb71

Please sign in to comment.