x/website: Add an example for arrays with the [...]T{a, b, c, d}
syntax
#66851
Labels
Milestone
[...]T{a, b, c, d}
syntax
#66851
What is the URL of the page with the issue?
https://go.dev/tour/moretypes/6
What is your user agent?
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36
Screenshot
What did you do?
I read this article and found this code snippet:
What did you see happen?
It is equivalent to this:
but it's more convenient because you don't have to count the number of elements since that is done automatically for you by the compiler.
What did you expect to see?
I think it would be awesome to include this feature in A Tour of Go. More specifically here.
The text was updated successfully, but these errors were encountered: