diff options
author | ringabout <43030857+ringabout@users.noreply.github.com> | 2023-02-03 02:11:20 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-02 13:11:20 -0500 |
commit | 8e53fba083a7450b8c2e9771cba8d477468a520e (patch) | |
tree | 5590c6fb8030d42f06cec62dc7475556c022f57f /compiler/condsyms.nim | |
parent | 17115cbc7375cdd47affd06dded62591d887441e (diff) | |
download | Nim-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.nim | 2 |
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 = |