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
commit 85bc8326ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1556,7 +1556,7 @@ type conversions in this context:
myWriteln(stdout, 123, "abc", 4.0) myWriteln(stdout, 123, "abc", 4.0)
# is transformed to: # 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 In this example `$` is applied to any argument that is passed to the
parameter `a`. (Note that `$` applied to strings is a nop.) parameter `a`. (Note that `$` applied to strings is a nop.)