summary refs log tree commit diff stats
path: root/lib/pure/strformat.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2018-01-13 10:57:51 +0100
committerAndreas Rumpf <rumpf_a@web.de>2018-01-13 10:57:51 +0100
commit38fde80b35d866ca36db680498c0f32936369c7e (patch)
tree46c4808280da1500d4141226b57283232800ff50 /lib/pure/strformat.nim
parent430a6c481e53d3c7d9e05c9d6822a3c632cdcecc (diff)
downloadNim-38fde80b35d866ca36db680498c0f32936369c7e.tar.gz
strformat: fixes new 'fmt' template
Diffstat (limited to 'lib/pure/strformat.nim')
-rw-r--r--lib/pure/strformat.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/pure/strformat.nim b/lib/pure/strformat.nim
index c771343c3..62b095cb1 100644
--- a/lib/pure/strformat.nim
+++ b/lib/pure/strformat.nim
@@ -417,6 +417,7 @@ template fmt*(pattern: string): untyped =
   ##
   ##  let example = "oh, look no conflicts anymore"
   ##  echo fmt"{example}"
+  bind `%`
   %pattern
 
 proc mkDigit(v: int, typ: char): string {.inline.} =