Skip to content

Commit

Permalink
fix formatting and misspellings (#605)
Browse files Browse the repository at this point in the history
* gofmt fixes

* fix misspellings

* add `gofmt -s`
  • Loading branch information
theganyo authored Jun 13, 2022
1 parent 87c1374 commit 5de74be
Show file tree
Hide file tree
Showing 12 changed files with 106 additions and 122 deletions.
2 changes: 1 addition & 1 deletion cmd/registry/diff/differ.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
"github.com/tufin/oasdiff/diff"
)

// change repersents one change in the diff.
// change represents one change in the diff.
type change struct {
fieldPath stack
changeType string
Expand Down
2 changes: 1 addition & 1 deletion cmd/registry/diff/differ_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ func TestMaps(t *testing.T) {
change := test.change
err := searchMapType(val, diffProto, &change)
if err != nil {
t.Fatalf("Failed to get diff proto, returnd with error: %+v", err)
t.Fatalf("Failed to get diff proto, returned with error: %+v", err)
}
if !cmp.Equal(test.wantProto, diffProto, opts) {
t.Errorf("searchMapType function returned unexpected diff (-want +got):\n%s", cmp.Diff(test.wantProto, diffProto, opts))
Expand Down
2 changes: 1 addition & 1 deletion cmd/registry/patterns/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ func SubstituteReferenceEntity(resourcePattern string, referred ResourceName) (R
}

func GetReferenceEntityType(resourcePattern string) (entity, entityType string, err error) {
// Reads the resourcePattern, finds out entity type in the $resource refernce
// Reads the resourcePattern, finds out entity type in the $resource reference
// Example:
// pattern: $resource.api/versions/-/specs/-
// returns "$resource.api","api"
Expand Down
2 changes: 1 addition & 1 deletion cmd/registry/patterns/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ func (ar ArtifactName) ParentName() ResourceName {
}

// This interface is used to describe generic resource instances
// ResourceName is embeded, the only additional field is the UpdateTimestamp
// ResourceName is embedded, the only additional field is the UpdateTimestamp
type ResourceInstance interface {
ResourceName() ResourceName
UpdateTimestamp() time.Time
Expand Down
2 changes: 1 addition & 1 deletion examples/pubsub/publish/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func main() {
defer topic.Stop()

// Publish a sample message.
// Ordinarly, we would expect only the server to post on this topic.
// Ordinarily, we would expect only the server to post on this topic.
var results []*pubsub.PublishResult
r := topic.Publish(ctx, &pubsub.Message{
Data: []byte("hello world"),
Expand Down
48 changes: 19 additions & 29 deletions gapic/admin_client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion gapic/doc.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 8 additions & 13 deletions gapic/provisioning_client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 5de74be

Please sign in to comment.