strformat: fixes new 'fmt' template
This commit is contained in:
parent
430a6c481e
commit
38fde80b35
1 changed files with 1 additions and 0 deletions
|
|
@ -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.} =
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue