diff --git a/examples/slices/slices.go b/examples/slices/slices.go index 07343d6..ac97a6b 100644 --- a/examples/slices/slices.go +++ b/examples/slices/slices.go @@ -20,7 +20,7 @@ func main() { // By default a new slice's capacity is equal to its // length; if we know the slice is going to grow ahead // of time, it's possible to pass a capacity explicitly - // as an additional parameter ot `make`. + // as an additional parameter to `make`. s = make([]string, 3) fmt.Println("emp:", s, "len:", len(s), "cap:", cap(s)) diff --git a/public/slices b/public/slices index 26a256d..4a05f5a 100644 --- a/public/slices +++ b/public/slices @@ -95,7 +95,7 @@ the builtin make. Here we make a slice of By default a new slice’s capacity is equal to its length; if we know the slice is going to grow ahead of time, it’s possible to pass a capacity explicitly -as an additional parameter ot make.

+as an additional parameter to make.