Skip to content

Commit 5b82db0

Browse files
ainar-gbradfitz
authored andcommitted
go/analysis: fix typos
Change-Id: I07235ffba66bf0f7ef0e1917c6f711d317c9ae02 Reviewed-on: https://go-review.googlesource.com/c/tools/+/194139 Reviewed-by: Toshihiro Shiino <[email protected]> Reviewed-by: Brad Fitzpatrick <[email protected]>
1 parent fef9eaa commit 5b82db0

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

go/analysis/internal/facts/facts.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
// The notion of "exportedness" that matters here is that of the
3030
// compiler. According to the language spec, a method pkg.T.f is
3131
// unexported simply because its name starts with lowercase. But the
32-
// compiler must nonethless export f so that downstream compilations can
32+
// compiler must nonetheless export f so that downstream compilations can
3333
// accurately ascertain whether pkg.T implements an interface pkg.I
3434
// defined as interface{f()}. Exported thus means "described in export
3535
// data".

go/analysis/passes/cgocall/cgocall.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ func checkCgo(fset *token.FileSet, f *ast.File, info *types.Info, reportf func(t
107107
// cgo files of a package (those that import "C"). Such files are not
108108
// Go, so there may be gaps in type information around C.f references.
109109
//
110-
// This checker was initially written in vet to inpect raw cgo source
110+
// This checker was initially written in vet to inspect raw cgo source
111111
// files using partial type information. However, Analyzers in the new
112112
// analysis API are presented with the type-checked, "cooked" Go ASTs
113113
// resulting from cgo-processing files, so we must choose between
@@ -133,7 +133,7 @@ func checkCgo(fset *token.FileSet, f *ast.File, info *types.Info, reportf func(t
133133
// func (T) f(int) string { ... }
134134
//
135135
// we synthesize a new ast.File, shown below, that dot-imports the
136-
// orginal "cooked" package using a special name ("·this·"), so that all
136+
// original "cooked" package using a special name ("·this·"), so that all
137137
// references to package members resolve correctly. (References to
138138
// unexported names cause an "unexported" error, which we ignore.)
139139
//

go/analysis/passes/errorsas/errorsas.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5-
// The errorsas package defines an Analyzer that checks that the second arugment to
5+
// The errorsas package defines an Analyzer that checks that the second argument to
66
// errors.As is a pointer to a type implementing error.
77
package errorsas
88

go/analysis/validate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
// Checks include:
1111
// that the name is a valid identifier;
1212
// that analyzer names are unique;
13-
// that the Requires graph is acylic;
13+
// that the Requires graph is acyclic;
1414
// that analyzer fact types are unique;
1515
// that each fact type is a pointer.
1616
func Validate(analyzers []*Analyzer) error {

0 commit comments

Comments
 (0)