From f9bc4d014a84ae0aad7b174e6987451e6204caa7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arne=20D=C3=B6ring?= Date: Thu, 18 Oct 2018 16:07:15 +0200 Subject: [PATCH] changelog entry --- changelog.md | 2 ++ lib/core/macros.nim | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/changelog.md b/changelog.md index 1f2655d7ad..9a56717571 100644 --- a/changelog.md +++ b/changelog.md @@ -25,6 +25,8 @@ - Added `split`, `splitWhitespace`, `size`, `alignLeft`, `align`, `strip`, `repeat` procs and iterators to `unicode.nim`. +- Added `or` for `NimNode` in `macros`. + ### Library changes diff --git a/lib/core/macros.nim b/lib/core/macros.nim index 0ae3a811f7..79195966ed 100644 --- a/lib/core/macros.nim +++ b/lib/core/macros.nim @@ -179,8 +179,7 @@ proc `[]=`*(n: NimNode, i: BackwardsIndex, child: NimNode) = template `or`*(x, y: NimNode): NimNode = ## Evaluate ``x`` and when it is not an empty node, return ## it. Otherwise evaluate to ``y``. Can be used to chain several - ## expressions that evaluates to the first expression that is not - ## empty. + ## expressions to get the first expression that is not empty. ## ## .. code-block:: nim ##