mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-04 04:02:41 +00:00
varargs example erroneously transformed "abc" to "def" (#19781)
(cherry picked from commit 85bc8326ac)
This commit is contained in:
@@ -1616,7 +1616,7 @@ type conversions in this context:
|
||||
|
||||
myWriteln(stdout, 123, "abc", 4.0)
|
||||
# is transformed to:
|
||||
myWriteln(stdout, [$123, $"def", $4.0])
|
||||
myWriteln(stdout, [$123, $"abc", $4.0])
|
||||
|
||||
In this example `$` is applied to any argument that is passed to the
|
||||
parameter `a`. (Note that `$` applied to strings is a nop.)
|
||||
|
||||
Reference in New Issue
Block a user