Skip to content

Commit 2a5cb71

Browse files
saemzerbina
andauthored
small efficiency improvement
Co-authored-by: zerbina <100542850+zerbina@users.noreply.github.com>
1 parent 78f24f8 commit 2a5cb71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/dust/spec.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ proc next*(remains: Remains): PNode =
7070

7171
proc massageMessage*(s: string): string =
7272
result = s.splitLines()[0]
73-
for c in {';', ':'}:
73+
for c in [';', ':']:
7474
let i = find(result, c)
7575
if i != -1:
7676
result = result[0 .. i - 1]

0 commit comments

Comments
 (0)