From d4af1256f0bcd1941d76eaec772d5c9d4f35e643 Mon Sep 17 00:00:00 2001 From: Michael Miller Date: Thu, 25 May 2023 07:58:15 -0400 Subject: [PATCH] Grammar correction MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit "it’s possible to pass a capacity explicitly as an additional parameter ot make" "it’s possible to pass a capacity explicitly as an additional parameter **to** make" --- examples/slices/slices.go | 2 +- public/slices | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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.