From: Martin Möhrmann Date: Mon, 14 Aug 2017 08:35:17 +0000 (+0200) Subject: cmd/compile: fix language in makeslice comment X-Git-Tag: go1.10beta1~1480 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=66a1d37bf78b75f4b3f20e67ecf34be5c996f61e;p=gostls13.git cmd/compile: fix language in makeslice comment Change-Id: I1929ea7e4ed88631ef729472ffe474016efec3e8 Reviewed-on: https://go-review.googlesource.com/56370 Reviewed-by: Ian Lance Taylor Run-TryBot: Martin Möhrmann TryBot-Result: Gobot Gobot --- diff --git a/src/cmd/compile/internal/gc/walk.go b/src/cmd/compile/internal/gc/walk.go index b7fabc1ebf..ac9edca801 100644 --- a/src/cmd/compile/internal/gc/walk.go +++ b/src/cmd/compile/internal/gc/walk.go @@ -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) &&