varargs example erroneously transformed "abc" to "def" (#19781)

(cherry picked from commit 85bc8326ac)
This commit is contained in:
Alfred Morgan
2022-05-10 05:21:35 -07:00
committed by narimiran
parent 28af1e5e45
commit 3e39f5bfec

View File

@@ -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.)