Skip to content

Commit

Permalink
Update arrays-and-slices.md
Browse files Browse the repository at this point in the history
  • Loading branch information
quii authored Apr 4, 2019
1 parent dde67d3 commit 19b63b9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions arrays-and-slices.md
Original file line number Diff line number Diff line change
Expand Up @@ -384,8 +384,7 @@ func SumAll(numbersToSum ...[]int) []int {
```

In this implementation, we are worrying less about capacity. We start with an
empty slice \(defined in the function signature\) and append to it the result of
`Sum` as we work through the varargs.
empty slice `sum` and append to it the result of `Sum` as we work through the varargs.

Our next requirement is to change `SumAll` to `SumAllTails`, where it now
calculates the totals of the "tails" of each slice. The tail of a collection is
Expand Down

0 comments on commit 19b63b9

Please sign in to comment.