mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-17 20:11:57 +02:00
Update go.html.markdown with simpler wording (#4829)
This commit is contained in:
committed by
GitHub
parent
3ae5f34a91
commit
8498d0254a
@@ -357,7 +357,7 @@ func learnInterfaces() {
|
|||||||
// Functions can have variadic parameters.
|
// Functions can have variadic parameters.
|
||||||
func learnVariadicParams(myStrings ...interface{}) {
|
func learnVariadicParams(myStrings ...interface{}) {
|
||||||
// Iterate each value of the variadic.
|
// Iterate each value of the variadic.
|
||||||
// The underbar here is ignoring the index argument of the array.
|
// The underscore here is ignoring the index argument of the array.
|
||||||
for _, param := range myStrings {
|
for _, param := range myStrings {
|
||||||
fmt.Println("param:", param)
|
fmt.Println("param:", param)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user