Skip to content

Commit 656fd83

Browse files
cuishuanggopherbot
authored andcommitted
all: fix some typos
Change-Id: Id8468705aa93a615caf014196cc77529bf991a9f GitHub-Last-Rev: 7598fb5 GitHub-Pull-Request: #46 Reviewed-on: https://go-review.googlesource.com/c/build/+/429455 TryBot-Result: Gopher Robot <[email protected]> Run-TryBot: Ian Lance Taylor <[email protected]> Reviewed-by: Carlos Amedee <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> Auto-Submit: Ian Lance Taylor <[email protected]>
1 parent b4daf1e commit 656fd83

File tree

15 files changed

+15
-15
lines changed

15 files changed

+15
-15
lines changed

cmd/gomote/get.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ func getTar(args []string) error {
7070
Directory: dir,
7171
})
7272
if err != nil {
73-
return fmt.Errorf("unable to retireve tgz URL: %s", statusFromError(err))
73+
return fmt.Errorf("unable to retrieve tgz URL: %s", statusFromError(err))
7474
}
7575
httpClient := &http.Client{
7676
Timeout: 10 * time.Second,

dashboard/builders.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -766,7 +766,7 @@ type BuildConfig struct {
766766

767767
// privateGoProxy for builder has it's own Go proxy instead of
768768
// proxy.golang.org, after setting this builder will respect
769-
// GOPROXY enviroment value.
769+
// GOPROXY environment value.
770770
privateGoProxy bool
771771

772772
// InstallRacePackages controls which packages to "go install

dashboard/builders_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ func TestBuilderConfig(t *testing.T) {
504504
{b("js-wasm", "tour"), none},
505505
{b("js-wasm", "website"), none},
506506

507-
// Race builders. Linux for all, GCE buidlers for
507+
// Race builders. Linux for all, GCE builders for
508508
// post-submit, and only post-submit for "go" for
509509
// Darwin (limited resources).
510510
{b("linux-amd64-race", "go"), both},

internal/access/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44

55
# golang.org/x/build/internal/access
66

7-
Package access provides primatives for implementing authentication and authorization.
7+
Package access provides primitives for implementing authentication and authorization.

internal/access/doc.go

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

5-
// Package access provides primatives for implementing authentication and
5+
// Package access provides primitives for implementing authentication and
66
// authorization.
77
package access

internal/coordinator/pool/ec2_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ func (f *fakeEC2BuildletClient) StartNewVM(ctx context.Context, buildEnv *builde
556556
}
557557
condRun(opts.OnInstanceRequested)
558558
if !f.VMCreated {
559-
return nil, errors.New("error waiting for instance to exist: vm existance disabled")
559+
return nil, errors.New("error waiting for instance to exist: vm existence disabled")
560560
}
561561

562562
condRun(opts.OnInstanceCreated)

internal/coordinator/remote/ssh.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ func (ss *SSHServer) ListenAndServe() error {
138138
return ss.server.ListenAndServe()
139139
}
140140

141-
// Close imediately closes all active listeners and connections.
141+
// Close immediately closes all active listeners and connections.
142142
func (ss *SSHServer) Close() error {
143143
return ss.server.Close()
144144
}

internal/gomote/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44

55
# golang.org/x/build/internal/gomote
66

7-
Package gomote contains all of the necessary components to implement and use the gomote funcitonality.
7+
Package gomote contains all of the necessary components to implement and use the gomote functionality.

internal/gomote/doc.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
// Package gomote contains all of the necessary components to implement
6-
// and use the gomote funcitonality. Gomotes are instances which are dedicated
6+
// and use the gomote functionality. Gomotes are instances which are dedicated
77
// to an individual user or service.
88
package gomote

internal/gomote/gomote_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ func TestExecuteCommand(t *testing.T) {
519519

520520
func TestExecuteCommandError(t *testing.T) {
521521
// This test will create a gomote instance and attempt to call TestExecuteCommand.
522-
// If overrideID is set to true, the test will use a diffrent gomoteID than the
522+
// If overrideID is set to true, the test will use a different gomoteID than the
523523
// the one created for the test.
524524
testCases := []struct {
525525
desc string

internal/releasetargets/releasetargets.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ type ReleaseTargets map[string]*Target
3131
// propagated forward unless overridden. To remove a target in a later release,
3232
// set it to nil explicitly.
3333
// GOOS and GOARCH will be set automatically from the target name, but can be
34-
// overridden if necessary. Name will also be set and should not be overriden.
34+
// overridden if necessary. Name will also be set and should not be overridden.
3535
var allReleases = map[int]ReleaseTargets{
3636
18: {
3737
"darwin-amd64": &Target{

internal/relui/sign/server.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ func NewServer() *SigningServer {
4141
}
4242

4343
// UpdateSigningStatus uses a bidirectional streaming connection to send signing requests to the client and
44-
// and recieve status updates on signing requests. There is no specific order which the requests or responses
44+
// and receive status updates on signing requests. There is no specific order which the requests or responses
4545
// need to occur in. The connection returns an error once the context is canceled or an error is encountered.
4646
func (rs *SigningServer) UpdateSigningStatus(stream protos.ReleaseService_UpdateSigningStatusServer) error {
4747
_, err := access.IAPFromContext(stream.Context())

internal/relui/sign/server_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ func TestUpdateSigningStatusError(t *testing.T) {
5050
t.Fatalf("stream.Recv() = %s, want %s", status.Code(err), wantCode)
5151
}
5252
})
53-
t.Run("non-existant signing request", func(t *testing.T) {
53+
t.Run("non-existent signing request", func(t *testing.T) {
5454
// skipping due to go.dev/issue/54654
5555
t.Skip("skipping flaky test. see go.dev/issue/54654")
5656

internal/workflow/workflow_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ func (l *mapListener) TaskStateChanged(workflowID uuid.UUID, taskID string, stat
564564
func (l *mapListener) assertState(t *testing.T, w *wf.Workflow, want map[string]*wf.TaskState) {
565565
t.Helper()
566566
if diff := cmp.Diff(l.states[w.ID], want, cmpopts.IgnoreFields(wf.TaskState{}, "SerializedResult")); diff != "" {
567-
t.Errorf("task state didn't match expections: %v", diff)
567+
t.Errorf("task state didn't match expectations: %v", diff)
568568
}
569569
}
570570

third_party/bandchart/bandchart.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ function BandChart(data, {
4040
// For (3) make sure the Y=0 line is in the middle.
4141
//
4242
// Finally, make sure we don't get closer than 0.025,
43-
// bceuase otherwise it just looks really noisy.
43+
// because otherwise it just looks really noisy.
4444
const minYDomain = [-0.025, 0.025];
4545
if (yDomain[0] > 0) {
4646
// (1)

0 commit comments

Comments
 (0)