Skip to content

Commit 4077921

Browse files
kortschakpjweinbgo
authored andcommitted
all: fix spelling
Change-Id: I13cf73d7e043dda1a06c28bb09e413a76a68df1f Reviewed-on: https://go-review.googlesource.com/c/tools/+/391934 Reviewed-by: Ian Lance Taylor <[email protected]> Run-TryBot: Ian Lance Taylor <[email protected]> gopls-CI: kokoro <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Trust: Hyang-Ah Hana Kim <[email protected]> Run-TryBot: Hyang-Ah Hana Kim <[email protected]>
1 parent ff66cbe commit 4077921

File tree

28 files changed

+37
-37
lines changed

28 files changed

+37
-37
lines changed

cmd/splitdwarf/splitdwarf.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ for input_exe need to allow writing.
9494
// IndSym Offset = file offset (within link edit section) of 4-byte indices within symtab.
9595
//
9696
// Section __TEXT.__symbol_stub1.
97-
// Offset and size (Reserved2) locate and describe a table for thios section.
97+
// Offset and size (Reserved2) locate and describe a table for this section.
9898
// Symbols beginning at IndirectSymIndex (Reserved1) (see LC_DYSYMTAB.IndSymOffset) refer to this table.
9999
// (These table entries are apparently PLTs [Procedure Linkage Table/Trampoline])
100100
//

go/analysis/internal/checker/checker.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -826,7 +826,7 @@ func codeFact(fact analysis.Fact) (analysis.Fact, error) {
826826

827827
// exportedFrom reports whether obj may be visible to a package that imports pkg.
828828
// This includes not just the exported members of pkg, but also unexported
829-
// constants, types, fields, and methods, perhaps belonging to oether packages,
829+
// constants, types, fields, and methods, perhaps belonging to other packages,
830830
// that find there way into the API.
831831
// This is an overapproximation of the more accurate approach used by
832832
// gc export data, which walks the type graph, but it's much simpler.

go/analysis/passes/sigchanyzer/sigchanyzer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ func run(pass *analysis.Pass) (interface{}, error) {
5050
}
5151
case *ast.CallExpr:
5252
// Only signal.Notify(make(chan os.Signal), os.Interrupt) is safe,
53-
// conservatively treate others as not safe, see golang/go#45043
53+
// conservatively treat others as not safe, see golang/go#45043
5454
if isBuiltinMake(pass.TypesInfo, arg) {
5555
return
5656
}

go/pointer/analysis.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ type object struct {
5959
//
6060
// ssa.Value for an object allocated by an SSA operation.
6161
// types.Type for an rtype instance object or *rtype-tagged object.
62-
// string for an instrinsic object, e.g. the array behind os.Args.
63-
// nil for an object allocated by an instrinsic.
62+
// string for an intrinsic object, e.g. the array behind os.Args.
63+
// nil for an object allocated by an intrinsic.
6464
// (cgn provides the identity of the intrinsic.)
6565
data interface{}
6666

internal/event/export/trace.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ func (s *SpanContext) Format(f fmt.State, r rune) {
9090
}
9191

9292
func (s *Span) Start() core.Event {
93-
// start never changes after construction, so we dont need to hold the mutex
93+
// start never changes after construction, so we don't need to hold the mutex
9494
return s.start
9595
}
9696

internal/jsonrpc2/wire.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ var (
3333
ErrServerOverloaded = NewError(-32000, "JSON RPC overloaded")
3434
)
3535

36-
// wireRequest is sent to a server to represent a Call or Notify operaton.
36+
// wireRequest is sent to a server to represent a Call or Notify operation.
3737
type wireRequest struct {
3838
// VersionTag is always encoded as the string "2.0"
3939
VersionTag wireVersionTag `json:"jsonrpc"`

internal/jsonrpc2_v2/net.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ func (n *netDialer) Dial(ctx context.Context) (io.ReadWriteCloser, error) {
8181
}
8282

8383
// NetPipeListener returns a new Listener that listens using net.Pipe.
84-
// It is only possibly to connect to it using the Dialier returned by the
84+
// It is only possibly to connect to it using the Dialer returned by the
8585
// Dialer method, each call to that method will generate a new pipe the other
8686
// side of which will be returned from the Accept call.
8787
func NetPipeListener(ctx context.Context) (Listener, error) {

internal/lsp/analysis/fillreturns/fillreturns.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,8 @@ outer:
188188
if !ok {
189189
return nil, fmt.Errorf("invalid return type: %v", retTyp)
190190
}
191-
// Find the identifer whose name is most similar to the return type.
192-
// If we do not find any identifer that matches the pattern,
191+
// Find the identifier whose name is most similar to the return type.
192+
// If we do not find any identifier that matches the pattern,
193193
// generate a zero value.
194194
value := analysisinternal.FindBestMatch(retTyp.String(), idents)
195195
if value == nil {

internal/lsp/analysis/fillstruct/fillstruct.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,8 +251,8 @@ func SuggestedFix(fset *token.FileSet, rng span.Range, content []byte, file *ast
251251
return nil, fmt.Errorf("invalid struct field type: %v", fieldTyp)
252252
}
253253

254-
// Find the identifer whose name is most similar to the name of the field's key.
255-
// If we do not find any identifer that matches the pattern, generate a new value.
254+
// Find the identifier whose name is most similar to the name of the field's key.
255+
// If we do not find any identifier that matches the pattern, generate a new value.
256256
// NOTE: We currently match on the name of the field key rather than the field type.
257257
value := analysisinternal.FindBestMatch(obj.Field(i).Name(), idents)
258258
if value == nil {

internal/lsp/cache/analysis.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ func runAnalysis(ctx context.Context, snapshot *snapshot, analyzer *analysis.Ana
367367

368368
// exportedFrom reports whether obj may be visible to a package that imports pkg.
369369
// This includes not just the exported members of pkg, but also unexported
370-
// constants, types, fields, and methods, perhaps belonging to oether packages,
370+
// constants, types, fields, and methods, perhaps belonging to other packages,
371371
// that find there way into the API.
372372
// This is an overapproximation of the more accurate approach used by
373373
// gc export data, which walks the type graph, but it's much simpler.

0 commit comments

Comments
 (0)