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

This commit is contained in:
Alfred Morgan
2022-05-10 05:21:35 -07:00
committed by GitHub
parent b2b878f4d6
commit 85bc8326ac

View File

@@ -1556,7 +1556,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.)