strformat: fixes new 'fmt' template

This commit is contained in:
Andreas Rumpf 2018-01-13 10:57:51 +01:00
commit 38fde80b35

View file

@ -417,6 +417,7 @@ template fmt*(pattern: string): untyped =
## ##
## let example = "oh, look no conflicts anymore" ## let example = "oh, look no conflicts anymore"
## echo fmt"{example}" ## echo fmt"{example}"
bind `%`
%pattern %pattern
proc mkDigit(v: int, typ: char): string {.inline.} = proc mkDigit(v: int, typ: char): string {.inline.} =