diff options
author | Juan Carlos <juancarlospaco@gmail.com> | 2020-07-14 11:44:56 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-14 16:44:56 +0200 |
commit | 9465b5db443b98d7ac2c1683e986716fb9a9290f (patch) | |
tree | 47e6b4eaf5c66c364f8d6bde2bb904296902fe87 /examples/talk | |
parent | 2b0e336c971401d06797240686722ce669d902b9 (diff) | |
download | Nim-9465b5db443b98d7ac2c1683e986716fb9a9290f.tar.gz |
Clean up macros (#14959)
Diffstat (limited to 'examples/talk')
-rw-r--r-- | examples/talk/formatoptimizer.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/talk/formatoptimizer.nim b/examples/talk/formatoptimizer.nim index 104214e19..6e3d0c2c3 100644 --- a/examples/talk/formatoptimizer.nim +++ b/examples/talk/formatoptimizer.nim @@ -33,7 +33,7 @@ macro optFormat{`%`(f, a)}(f: string{lit}, a: openArray[string]): untyped = #newCall("&") let f = f.strVal formatImpl(newLit) - result = nestList(!"&", result) + result = nestList(newIdentNode("&"), result) template optAdd1{x = y; add(x, z)}(x, y, z: string) = x = y & z |