mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
doc/progs: gofmt -w
R=r, gri, r CC=golang-dev https://golang.org/cl/4662085
This commit is contained in:
parent
e86d727e60
commit
ab3365d34e
13 changed files with 57 additions and 60 deletions
|
|
@ -14,7 +14,6 @@ func sum(a []int) int { // returns an int
|
|||
return s
|
||||
}
|
||||
|
||||
|
||||
func main() {
|
||||
s := sum([3]int{1, 2, 3}[:]) // a slice of the array is passed to sum
|
||||
fmt.Print(s, "\n")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue