]> Cypherpunks repositories - gostls13.git/commitdiff
all: fix some comments
authorcui fliter <imcusg@gmail.com>
Tue, 2 Jan 2024 06:25:45 +0000 (14:25 +0800)
committerGopher Robot <gobot@golang.org>
Thu, 4 Apr 2024 14:29:45 +0000 (14:29 +0000)
Change-Id: I0ee85161846c13d938213ef04d3a34f690a93e48
Reviewed-on: https://go-review.googlesource.com/c/go/+/553435
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@golang.org>

src/cmd/compile/internal/noder/unified.go
src/cmd/compile/internal/ssagen/abi.go
src/cmd/compile/internal/typecheck/expr.go
src/cmd/compile/internal/types/type.go
src/net/conf.go
src/runtime/pinner.go
test/makechan.go

index da04ac5a2a244819f7c76a493ea451330b0c1ffa..bbc58ee340be710ed557a209b27eae83412b288b 100644 (file)
@@ -27,7 +27,7 @@ import (
 // later.
 var localPkgReader *pkgReader
 
-// LookupMethodFunc returns the ir.Func for an arbitrary full symbol name if
+// LookupFunc returns the ir.Func for an arbitrary full symbol name if
 // that function exists in the set of available export data.
 //
 // This allows lookup of arbitrary functions and methods that aren't otherwise
index 56af9ce7810e7091e7ae53e04139853a893e5138..5c4a8aff69c45d3373cdec56d9509bfc7edd8f9a 100644 (file)
@@ -403,7 +403,7 @@ func resultsToWasmFields(f *ir.Func, result *abi.ABIParamResultInfo, abiParams [
        return wfs
 }
 
-// setupTextLSym initializes the LSym for a with-body text symbol.
+// setupWasmABI calculates the params and results in terms of WebAssembly values for the given function.
 func setupWasmABI(f *ir.Func) {
        wi := obj.WasmImport{
                Module: f.WasmImport.Module,
index eb9dc62d8aef9139c7adf80c9a82ed5e8bec3d21..eb92797259187134efb57469fe882fb81ae7f6fe 100644 (file)
@@ -433,7 +433,7 @@ func dot(pos src.XPos, typ *types.Type, op ir.Op, x ir.Node, selection *types.Fi
        return n
 }
 
-// XDotMethod returns an expression representing the field selection
+// XDotField returns an expression representing the field selection
 // x.sym. If any implicit field selection are necessary, those are
 // inserted too.
 func XDotField(pos src.XPos, x ir.Node, sym *types.Sym) *ir.SelectorExpr {
index f372af32b5c8a1638c72e5b4c1c213fab5b1fdbd..b29b2aca06aa837f834ba04c0b4b0b63555aaa80 100644 (file)
@@ -844,7 +844,7 @@ func (t *Type) wantEtype(et Kind) {
        }
 }
 
-// ResultTuple returns the result type of signature type t as a tuple.
+// ResultsTuple returns the result type of signature type t as a tuple.
 // This can be used as the type of multi-valued call expressions.
 func (t *Type) ResultsTuple() *Type { return t.funcType().resultsTuple }
 
@@ -858,7 +858,7 @@ func (t *Type) Params() []*Field { return t.funcType().params() }
 // Results returns a slice of result parameters of signature type t.
 func (t *Type) Results() []*Field { return t.funcType().results() }
 
-// RecvsParamsResults returns a slice containing all of the
+// RecvParamsResults returns a slice containing all of the
 // signature's parameters in receiver (if any), (normal) parameters,
 // and then results.
 func (t *Type) RecvParamsResults() []*Field { return t.funcType().allParams }
index 6fe1e4725ac476ff6ce0c3ddf3b1ab6f04a57094..20c81b95de6db36c98880d3222393e5049cb1c7b 100644 (file)
@@ -190,7 +190,7 @@ func (c *conf) mustUseGoResolver(r *Resolver) bool {
        if runtime.GOOS == "plan9" {
                // TODO(bradfitz): for now we only permit use of the PreferGo
                // implementation when there's a non-nil Resolver with a
-               // non-nil Dialer. This is a sign that they the code is trying
+               // non-nil Dialer. This is a sign that the code is trying
                // to use their DNS-speaking net.Conn (such as an in-memory
                // DNS cache) and they don't want to actually hit the network.
                // Once we add support for looking the default DNS servers
index 208fc983ee8039568bb929c37de2ea9b823e147a..7a9c3815803b396db095eafa88a9d869ff045882 100644 (file)
@@ -272,7 +272,7 @@ func (s *mspan) pinnerBitSize() uintptr {
 }
 
 // newPinnerBits returns a pointer to 8 byte aligned bytes to be used for this
-// span's pinner bits. newPinneBits is used to mark objects that are pinned.
+// span's pinner bits. newPinnerBits is used to mark objects that are pinned.
 // They are copied when the span is swept.
 func (s *mspan) newPinnerBits() *pinnerBits {
        return (*pinnerBits)(newMarkBits(uintptr(s.nelems) * 2))
index 9fabd1701f9cbd326f75987ee1a772f6d8268654..c60248e4ea5cbbc3fe9e97aca4e91703ccc99d68 100644 (file)
@@ -4,7 +4,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// Ensure that typed non-integer, negative and to large
+// Ensure that typed non-integer, negative and too large
 // values are not accepted as size argument in make for
 // channels.