From 897cb4b077736a4658a725d498dea40032c58041 Mon Sep 17 00:00:00 2001 From: Timothee Cour Date: Wed, 10 Feb 2021 03:13:28 -0800 Subject: [PATCH] nep1: prefer `a..b` to `a .. b` except if `b` has an operator (eg: `a .. -1`) (#16992) * nep1: prefer `a..b` to `a .. b` except if b has an operator * address comments * address comment --- doc/nep1.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/nep1.rst b/doc/nep1.rst index e1d877816982..052837b900a6 100644 --- a/doc/nep1.rst +++ b/doc/nep1.rst @@ -280,3 +280,6 @@ Conventions for multi-line statements and expressions .. code-block:: nim startProcess(nimExecutable, currentDirectory, compilerArguments environment, processOptions) + +- Use `a..b` instead of `a .. b`, except when `b` contains an operator, for example `a .. -3`. + Likewise with `a..