diff options
author | Araq <rumpf_a@web.de> | 2019-04-14 20:41:00 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-04-15 08:20:28 +0200 |
commit | a517a9985b1445b2f0f014368f475dd8a11f8401 (patch) | |
tree | 96b755284df6fc5e8f4ad6bf9f9bf86a3bd64066 /lib/pure/strformat.nim | |
parent | 59ccaa43c733c33c9d0db3c8e9a5fd303909482f (diff) | |
download | Nim-a517a9985b1445b2f0f014368f475dd8a11f8401.tar.gz |
fixes another regression; the behaviour of 'array' formatting was changed
Diffstat (limited to 'lib/pure/strformat.nim')
-rw-r--r-- | lib/pure/strformat.nim | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/pure/strformat.nim b/lib/pure/strformat.nim index e12ca3c89..19fbf8ab3 100644 --- a/lib/pure/strformat.nim +++ b/lib/pure/strformat.nim @@ -513,14 +513,6 @@ template formatValue(result: var string; value: char; specifier: string) = template formatValue(result: var string; value: cstring; specifier: string) = result.add value -proc formatValue(result: var string; value: (array|seq|openArray); specifier: string) = - result.add "[" - for i, it in value: - if i != 0: - result.add ", " - result.formatValue(it, specifier) - result.add "]" - macro `&`*(pattern: string): untyped = ## For a specification of the ``&`` macro, see the module level documentation. if pattern.kind notin {nnkStrLit..nnkTripleStrLit}: |