Skip to content

Commit

Permalink
slices-redefined
Browse files Browse the repository at this point in the history
  • Loading branch information
Himanshuxone committed Oct 15, 2016
1 parent 8f7b00c commit 139d730
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions variables.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ func main() {
fmt.Println(value, j)
}

// := assignment operator is used to create an array of length 5
// another way to create an array using assignment operator
favNums1 := [5]float64 {1,7,6,4,5}
for _, value := range favNums1 {
Expand Down

0 comments on commit 139d730

Please sign in to comment.