Skip to content

Commit 4bf422a

Browse files
Fix spelling mistakes in comments, docs, and error strings
Fix ~55 spelling mistakes across 55 files in source comments, package doc strings, markdown documentation, error message strings, and test strings.
1 parent c011f41 commit 4bf422a

55 files changed

Lines changed: 66 additions & 66 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

cmd/appender/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Small function that demonstrates two concepts:
3434
1. Deserializing / Serializing data
3535
2. Using direct reply to modify incoming events (decorating in this example)
3636
37-
Incoming data is assumbed to be CloudEventBaseData with two fields
37+
Incoming data is assumed to be CloudEventBaseData with two fields
3838
Sequence int
3939
Message string
4040

cmd/event_display/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,9 @@ func run(ctx context.Context) {
101101

102102
ctx = observability.WithConfig(ctx, cfg)
103103

104-
otelResource, err := resource.Default("hearbeat")
104+
otelResource, err := resource.Default("heartbeat")
105105
if err != nil {
106-
log.Printf("failed to correctly initialize otel resource, resouce may be missing some attributes: %s\n", err.Error())
106+
log.Printf("failed to correctly initialize otel resource, resource may be missing some attributes: %s\n", err.Error())
107107
}
108108

109109
meterProvider, err := metrics.NewMeterProvider(

cmd/heartbeats/main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ func main() {
124124
overrides := duckv1.CloudEventOverrides{}
125125
err := json.Unmarshal([]byte(env.CEOverrides), &overrides)
126126
if err != nil {
127-
log.Printf("[ERROR] Unparseable CloudEvents overrides %s: %v", env.CEOverrides, err)
127+
log.Printf("[ERROR] Unparsable CloudEvents overrides %s: %v", env.CEOverrides, err)
128128
os.Exit(1)
129129
}
130130
ceOverrides = &overrides
@@ -146,9 +146,9 @@ func main() {
146146

147147
ctx = observability.WithConfig(ctx, cfg)
148148

149-
otelResource, err := resource.Default("hearbeat")
149+
otelResource, err := resource.Default("heartbeat")
150150
if err != nil {
151-
log.Printf("failed to correctly initialize otel resource, resouce may be missing some attributes: %s\n", err.Error())
151+
log.Printf("failed to correctly initialize otel resource, resource may be missing some attributes: %s\n", err.Error())
152152
}
153153

154154
meterProvider, err := metrics.NewMeterProvider(

docs/service-accounts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Knative Eventing has many pieces. Many of those pieces run Kubernetes Pods,
44
meaning they run as Kubernetes ServiceAccounts. This document describes Knative
5-
Eventing's recommended use and re-use of ServiceAccounts.
5+
Eventing's recommended use and reuse of ServiceAccounts.
66

77
## General Philosophy
88

pkg/adapter/apiserver/delegate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ func (a *resourceDelegate) handleKubernetesObject(makeEvent makeEventFunc, obj i
7676
return nil
7777
}
7878

79-
// sendCloudEvent sends a cloudevent everytime k8s api event is created, updated or deleted.
79+
// sendCloudEvent sends a cloudevent every time k8s api event is created, updated or deleted.
8080
func (a *resourceDelegate) sendCloudEvent(ctx context.Context, event cloudevents.Event) {
8181
event.SetID(uuid.New().String()) // provide an ID here so we can track it with logging
8282
defer a.logger.Debug("Finished sending cloudevent id: ", event.ID())

pkg/apis/duck/v1beta1/delivery_conversion.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,4 @@ func (sink *DeliverySpec) ConvertFrom(ctx context.Context, from apis.Convertible
7676
}
7777
}
7878

79-
// DeliveryStatus v1beta1 is not convertable to v1 (Channel ref type vs URL)
79+
// DeliveryStatus v1beta1 is not convertible to v1 (Channel ref type vs URL)

pkg/apis/duck/v1beta1/delivery_conversion_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,5 +198,5 @@ func TestDeliverySpecConversionV1(t *testing.T) {
198198
}
199199
}
200200

201-
// v1beta1 and v1 DeliveryStatus are not convertable to each other.
201+
// v1beta1 and v1 DeliveryStatus are not convertible to each other.
202202
// (channel ref vs apis.URL)

pkg/apis/eventing/v1alpha1/register.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const (
3636
RequestReplyBrokerCACertsStatusAnnotationKey = "knative.dev/brokerCACerts"
3737

3838
// RequestReplyBrokerAudienceStatusAnnotationKey is the RequestReply status
39-
// anotation key used to specify the broker's OIDC audience
39+
// annotation key used to specify the broker's OIDC audience
4040
RequestReplyBrokerAudienceStatusAnnotationKey = "knative.dev/brokerAudience"
4141
)
4242

pkg/apis/sinks/register.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ const (
2828
)
2929

3030
var (
31-
// JobSinkResource respresents a Knative Eventing sink JobSink
31+
// JobSinkResource represents a Knative Eventing sink JobSink
3232
JobSinkResource = schema.GroupResource{
3333
Group: GroupName,
3434
Resource: "jobsinks",
3535
}
3636

37-
// IntegrationSinkResource respresents a Knative Eventing sink IntegrationSink
37+
// IntegrationSinkResource represents a Knative Eventing sink IntegrationSink
3838
IntegrationSinkResource = schema.GroupResource{
3939
Group: GroupName,
4040
Resource: "integrationsinks",

pkg/apis/sources/register.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,30 +35,30 @@ const (
3535
)
3636

3737
var (
38-
// ApiServerSourceResource respresents a Knative Eventing Sources ApiServerSource
38+
// ApiServerSourceResource represents a Knative Eventing Sources ApiServerSource
3939
//nolint:staticcheck // Not capitalizing "API"
4040
ApiServerSourceResource = schema.GroupResource{
4141
Group: GroupName,
4242
Resource: "apiserversources",
4343
}
44-
// PingSourceResource respresents a Knative Eventing Sources PingSource
44+
// PingSourceResource represents a Knative Eventing Sources PingSource
4545
PingSourceResource = schema.GroupResource{
4646
Group: GroupName,
4747
Resource: "pingsources",
4848
}
49-
// SinkBindingResource respresents a Knative Eventing Sources SinkBinding
49+
// SinkBindingResource represents a Knative Eventing Sources SinkBinding
5050
SinkBindingResource = schema.GroupResource{
5151
Group: GroupName,
5252
Resource: "sinkbindings",
5353
}
5454

55-
// ContainerSourceResource respresents a Knative Eventing Sources ContainerSource
55+
// ContainerSourceResource represents a Knative Eventing Sources ContainerSource
5656
ContainerSourceResource = schema.GroupResource{
5757
Group: GroupName,
5858
Resource: "containersources",
5959
}
6060

61-
// IntegrationSourceResource respresents a Knative Eventing Sources IntegrationSource
61+
// IntegrationSourceResource represents a Knative Eventing Sources IntegrationSource
6262
IntegrationSourceResource = schema.GroupResource{
6363
Group: GroupName,
6464
Resource: "integrationsources",

0 commit comments

Comments
 (0)