1
0
mirror of https://github.com/golang/go synced 2024-07-01 07:56:09 +00:00

all: fix some comments

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>
This commit is contained in:
cui fliter 2024-01-02 14:25:45 +08:00 committed by Gopher Robot
parent da6cc218cb
commit 7dd8f39eba
7 changed files with 8 additions and 8 deletions

View 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

View 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,

View 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 {

View 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 }

View 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

View 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))

View 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.