]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile: fix language in makeslice comment
authorMartin Möhrmann <moehrmann@google.com>
Mon, 14 Aug 2017 08:35:17 +0000 (10:35 +0200)
committerMartin Möhrmann <moehrmann@google.com>
Fri, 18 Aug 2017 09:28:16 +0000 (09:28 +0000)
Change-Id: I1929ea7e4ed88631ef729472ffe474016efec3e8
Reviewed-on: https://go-review.googlesource.com/56370
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Martin Möhrmann <moehrmann@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>

src/cmd/compile/internal/gc/walk.go

index b7fabc1ebf131b7bbee1ab81096acf698fb04d3a..ac9edca80130ecd6697e63d96a62af8b70a267ef 100644 (file)
@@ -1501,7 +1501,7 @@ opswitch:
                        fnname := "makeslice64"
                        argtype := types.Types[TINT64]
 
-                       // typechecking guarantees that TIDEAL len/cap are positive and fit in an int.
+                       // Type checking guarantees that TIDEAL len/cap are positive and fit in an int.
                        // The case of len or cap overflow when converting TUINT or TUINTPTR to TINT
                        // will be handled by the negative range checks in makeslice during runtime.
                        if (len.Type.IsKind(TIDEAL) || maxintval[len.Type.Etype].Cmp(maxintval[TUINT]) <= 0) &&