summary refs log tree commit diff stats
path: root/compiler/condsyms.nim
diff options
context:
space:
mode:
authorringabout <43030857+ringabout@users.noreply.github.com>2023-02-03 02:11:20 +0800
committerGitHub <noreply@github.com>2023-02-02 13:11:20 -0500
commit8e53fba083a7450b8c2e9771cba8d477468a520e (patch)
tree5590c6fb8030d42f06cec62dc7475556c022f57f /compiler/condsyms.nim
parent17115cbc7375cdd47affd06dded62591d887441e (diff)
downloadNim-8e53fba083a7450b8c2e9771cba8d477468a520e.tar.gz
replaces `pairs` with `keys` and `items`; saves 8 bytes (#21319)
replace `pairs` with `keys` and `items`
Diffstat (limited to 'compiler/condsyms.nim')
-rw-r--r--compiler/condsyms.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/condsyms.nim b/compiler/condsyms.nim
index c05aaf10b..a499b7142 100644
--- a/compiler/condsyms.nim
+++ b/compiler/condsyms.nim
@@ -25,7 +25,7 @@ proc undefSymbol*(symbols: StringTableRef; symbol: string) =
 #  result = if isDefined(symbol): gSymbols[symbol] else: nil
 
 iterator definedSymbolNames*(symbols: StringTableRef): string =
-  for key, val in pairs(symbols):
+  for key in keys(symbols):
     yield key
 
 proc countDefinedSymbols*(symbols: StringTableRef): int =