Skip to content

Commit

Permalink
all: fix some typos
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
cuishuang authored and gopherbot committed Sep 8, 2022
1 parent b4daf1e commit 656fd83
Show file tree
Hide file tree
Showing 15 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion cmd/gomote/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func getTar(args []string) error {
Directory: dir,
})
if err != nil {
return fmt.Errorf("unable to retireve tgz URL: %s", statusFromError(err))
return fmt.Errorf("unable to retrieve tgz URL: %s", statusFromError(err))
}
httpClient := &http.Client{
Timeout: 10 * time.Second,
Expand Down
2 changes: 1 addition & 1 deletion dashboard/builders.go
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,7 @@ type BuildConfig struct {

// privateGoProxy for builder has it's own Go proxy instead of
// proxy.golang.org, after setting this builder will respect
// GOPROXY enviroment value.
// GOPROXY environment value.
privateGoProxy bool

// InstallRacePackages controls which packages to "go install
Expand Down
2 changes: 1 addition & 1 deletion dashboard/builders_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ func TestBuilderConfig(t *testing.T) {
{b("js-wasm", "tour"), none},
{b("js-wasm", "website"), none},

// Race builders. Linux for all, GCE buidlers for
// Race builders. Linux for all, GCE builders for
// post-submit, and only post-submit for "go" for
// Darwin (limited resources).
{b("linux-amd64-race", "go"), both},
Expand Down
2 changes: 1 addition & 1 deletion internal/access/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

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

Package access provides primatives for implementing authentication and authorization.
Package access provides primitives for implementing authentication and authorization.
2 changes: 1 addition & 1 deletion internal/access/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// Package access provides primatives for implementing authentication and
// Package access provides primitives for implementing authentication and
// authorization.
package access
2 changes: 1 addition & 1 deletion internal/coordinator/pool/ec2_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ func (f *fakeEC2BuildletClient) StartNewVM(ctx context.Context, buildEnv *builde
}
condRun(opts.OnInstanceRequested)
if !f.VMCreated {
return nil, errors.New("error waiting for instance to exist: vm existance disabled")
return nil, errors.New("error waiting for instance to exist: vm existence disabled")
}

condRun(opts.OnInstanceCreated)
Expand Down
2 changes: 1 addition & 1 deletion internal/coordinator/remote/ssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func (ss *SSHServer) ListenAndServe() error {
return ss.server.ListenAndServe()
}

// Close imediately closes all active listeners and connections.
// Close immediately closes all active listeners and connections.
func (ss *SSHServer) Close() error {
return ss.server.Close()
}
Expand Down
2 changes: 1 addition & 1 deletion internal/gomote/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

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

Package gomote contains all of the necessary components to implement and use the gomote funcitonality.
Package gomote contains all of the necessary components to implement and use the gomote functionality.
2 changes: 1 addition & 1 deletion internal/gomote/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
// license that can be found in the LICENSE file.

// Package gomote contains all of the necessary components to implement
// and use the gomote funcitonality. Gomotes are instances which are dedicated
// and use the gomote functionality. Gomotes are instances which are dedicated
// to an individual user or service.
package gomote
2 changes: 1 addition & 1 deletion internal/gomote/gomote_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ func TestExecuteCommand(t *testing.T) {

func TestExecuteCommandError(t *testing.T) {
// This test will create a gomote instance and attempt to call TestExecuteCommand.
// If overrideID is set to true, the test will use a diffrent gomoteID than the
// If overrideID is set to true, the test will use a different gomoteID than the
// the one created for the test.
testCases := []struct {
desc string
Expand Down
2 changes: 1 addition & 1 deletion internal/releasetargets/releasetargets.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ type ReleaseTargets map[string]*Target
// propagated forward unless overridden. To remove a target in a later release,
// set it to nil explicitly.
// GOOS and GOARCH will be set automatically from the target name, but can be
// overridden if necessary. Name will also be set and should not be overriden.
// overridden if necessary. Name will also be set and should not be overridden.
var allReleases = map[int]ReleaseTargets{
18: {
"darwin-amd64": &Target{
Expand Down
2 changes: 1 addition & 1 deletion internal/relui/sign/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func NewServer() *SigningServer {
}

// UpdateSigningStatus uses a bidirectional streaming connection to send signing requests to the client and
// and recieve status updates on signing requests. There is no specific order which the requests or responses
// and receive status updates on signing requests. There is no specific order which the requests or responses
// need to occur in. The connection returns an error once the context is canceled or an error is encountered.
func (rs *SigningServer) UpdateSigningStatus(stream protos.ReleaseService_UpdateSigningStatusServer) error {
_, err := access.IAPFromContext(stream.Context())
Expand Down
2 changes: 1 addition & 1 deletion internal/relui/sign/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func TestUpdateSigningStatusError(t *testing.T) {
t.Fatalf("stream.Recv() = %s, want %s", status.Code(err), wantCode)
}
})
t.Run("non-existant signing request", func(t *testing.T) {
t.Run("non-existent signing request", func(t *testing.T) {
// skipping due to go.dev/issue/54654
t.Skip("skipping flaky test. see go.dev/issue/54654")

Expand Down
2 changes: 1 addition & 1 deletion internal/workflow/workflow_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ func (l *mapListener) TaskStateChanged(workflowID uuid.UUID, taskID string, stat
func (l *mapListener) assertState(t *testing.T, w *wf.Workflow, want map[string]*wf.TaskState) {
t.Helper()
if diff := cmp.Diff(l.states[w.ID], want, cmpopts.IgnoreFields(wf.TaskState{}, "SerializedResult")); diff != "" {
t.Errorf("task state didn't match expections: %v", diff)
t.Errorf("task state didn't match expectations: %v", diff)
}
}

Expand Down
2 changes: 1 addition & 1 deletion third_party/bandchart/bandchart.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function BandChart(data, {
// For (3) make sure the Y=0 line is in the middle.
//
// Finally, make sure we don't get closer than 0.025,
// bceuase otherwise it just looks really noisy.
// because otherwise it just looks really noisy.
const minYDomain = [-0.025, 0.025];
if (yDomain[0] > 0) {
// (1)
Expand Down

0 comments on commit 656fd83

Please sign in to comment.