Skip to content

Commit edafbe5

Browse files
merrickclaygopherbot
authored andcommitted
tools: fix typos in docs and comments
Change-Id: I24d372c18122805b14c4f1214a7e18345397af9e Reviewed-on: https://go-review.googlesource.com/c/tools/+/644136 Reviewed-by: Alan Donovan <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Auto-Submit: Ian Lance Taylor <[email protected]> Commit-Queue: Ian Lance Taylor <[email protected]>
1 parent 891e3b6 commit edafbe5

File tree

24 files changed

+25
-25
lines changed

24 files changed

+25
-25
lines changed

cmd/file2fuzz/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// output to stdout. If any position arguments are provided stdin is ignored
1414
// and the arguments are assumed to be input files to convert.
1515
//
16-
// The -o flag provides an path to write output files to. If only one positional
16+
// The -o flag provides a path to write output files to. If only one positional
1717
// argument is specified it may be a file path or an existing directory, if there are
1818
// multiple inputs specified it must be a directory. If a directory is provided
1919
// the name of the file will be the SHA-256 hash of its contents.

go/analysis/passes/pkgfact/pkgfact.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ var Analyzer = &analysis.Analyzer{
4545
}
4646

4747
// A pairsFact is a package-level fact that records
48-
// an set of key=value strings accumulated from constant
48+
// a set of key=value strings accumulated from constant
4949
// declarations in this package and its dependencies.
5050
// Elements are ordered by keys, which are unique.
5151
type pairsFact []string

go/analysis/passes/unreachable/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99
// unreachable: check for unreachable code
1010
//
1111
// The unreachable analyzer finds statements that execution can never reach
12-
// because they are preceded by an return statement, a call to panic, an
12+
// because they are preceded by a return statement, a call to panic, an
1313
// infinite loop, or similar constructs.
1414
package unreachable

go/callgraph/vta/propagation_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ func TestPropagation(t *testing.T) {
336336
"Local(t2)": "A;B;C",
337337
},
338338
},
339-
// The outer loop of subsumed-scc pushes A an B through the graph.
339+
// The outer loop of subsumed-scc pushes A and B through the graph.
340340
{name: "subsumed-scc", graph: suite["subsumed-scc"],
341341
want: map[string]string{
342342
"Local(t0)": "A;B",

go/expect/extract.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import (
2121
const commentStart = "@"
2222
const commentStartLen = len(commentStart)
2323

24-
// Identifier is the type for an identifier in an Note argument list.
24+
// Identifier is the type for an identifier in a Note argument list.
2525
type Identifier string
2626

2727
// Parse collects all the notes present in a file.

go/loader/loader_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ func TestVendorCwdIssue16580(t *testing.T) {
558558
// - TypeCheckFuncBodies hook
559559

560560
func TestTransitivelyErrorFreeFlag(t *testing.T) {
561-
// Create an minimal custom build.Context
561+
// Create a minimal custom build.Context
562562
// that fakes the following packages:
563563
//
564564
// a --> b --> c! c has an error

go/packages/packagestest/expect.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ func (e *Exported) rangeConverter(n *expect.Note, args []interface{}) (Range, []
411411
eof := tokFile.Pos(tokFile.Size())
412412
return newRange(tokFile, eof, eof), args, nil
413413
default:
414-
// look up an marker by name
414+
// look up a marker by name
415415
mark, ok := e.markers[string(arg)]
416416
if !ok {
417417
return Range{}, nil, fmt.Errorf("cannot find marker %v", arg)

go/ssa/builder_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ func TestRuntimeTypes(t *testing.T) {
214214
input string
215215
want []string
216216
}{
217-
// An package-level type is needed.
217+
// A package-level type is needed.
218218
{`package A; type T struct{}; func (T) f() {}; var x any = T{}`,
219219
[]string{"*p.T", "p.T"},
220220
},

go/ssa/emit.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import (
1818
// emitAlloc emits to f a new Alloc instruction allocating a variable
1919
// of type typ.
2020
//
21-
// The caller must set Alloc.Heap=true (for an heap-allocated variable)
21+
// The caller must set Alloc.Heap=true (for a heap-allocated variable)
2222
// or add the Alloc to f.Locals (for a frame-allocated variable).
2323
//
2424
// During building, a variable in f.Locals may have its Heap flag

gopls/doc/analyzers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -912,7 +912,7 @@ Package documentation: [unmarshal](https://pkg.go.dev/golang.org/x/tools/go/anal
912912

913913

914914
The unreachable analyzer finds statements that execution can never reach
915-
because they are preceded by an return statement, a call to panic, an
915+
because they are preceded by a return statement, a call to panic, an
916916
infinite loop, or similar constructs.
917917

918918
Default: on.

0 commit comments

Comments
 (0)