Skip to content

Commit 9e8664e

Browse files
authored
Fix various misspellings (#1381)
1 parent 690734d commit 9e8664e

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

protoc-gen-grpc-gateway/descriptor/grpc_api_configuration.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ func loadGrpcAPIServiceFromYAML(yamlFileContents []byte, yamlSourceLogName strin
1616
return nil, fmt.Errorf("Failed to convert gRPC API Configuration from YAML in '%v' to JSON: %v", yamlSourceLogName, err)
1717
}
1818

19-
// As our GrpcAPIService is incomplete accept unkown fields.
19+
// As our GrpcAPIService is incomplete accept unknown fields.
2020
unmarshaler := jsonpb.Unmarshaler{
2121
AllowUnknownFields: true,
2222
}

runtime/context.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ func timeoutUnitToDuration(u uint8) (d time.Duration, ok bool) {
201201
}
202202

203203
// isPermanentHTTPHeader checks whether hdr belongs to the list of
204-
// permenant request headers maintained by IANA.
204+
// permanent request headers maintained by IANA.
205205
// http://www.iana.org/assignments/message-headers/message-headers.xml
206206
func isPermanentHTTPHeader(hdr string) bool {
207207
switch hdr {

runtime/errors.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ func DefaultHTTPError(ctx context.Context, mux *ServeMux, marshaler Marshaler, w
120120
w.Header().Del("Trailer")
121121

122122
contentType := marshaler.ContentType()
123-
// Check marshaler on run time in order to keep backwards compatability
123+
// Check marshaler on run time in order to keep backwards compatibility
124124
// An interface param needs to be added to the ContentType() function on
125125
// the Marshal interface to be able to remove this check
126126
if typeMarshaler, ok := marshaler.(contentTypeMarshaler); ok {

runtime/handler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ func ForwardResponseMessage(ctx context.Context, mux *ServeMux, marshaler Marsha
135135
handleForwardResponseTrailerHeader(w, md)
136136

137137
contentType := marshaler.ContentType()
138-
// Check marshaler on run time in order to keep backwards compatability
138+
// Check marshaler on run time in order to keep backwards compatibility
139139
// An interface param needs to be added to the ContentType() function on
140140
// the Marshal interface to be able to remove this check
141141
if typeMarshaler, ok := marshaler.(contentTypeMarshaler); ok {

runtime/marshal_httpbodyproto.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ type HTTPBodyMarshaler struct {
1919
Marshaler
2020
}
2121

22-
// ContentType implementation to keep backwards compatability with marshal interface
22+
// ContentType implementation to keep backwards compatibility with marshal interface
2323
func (h *HTTPBodyMarshaler) ContentType() string {
2424
return h.ContentTypeFromMessage(nil)
2525
}

runtime/marshaler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,6 @@ func (f EncoderFunc) Encode(v interface{}) error { return f(v) }
5050

5151
// Delimited defines the streaming delimiter.
5252
type Delimited interface {
53-
// Delimiter returns the record seperator for the stream.
53+
// Delimiter returns the record separator for the stream.
5454
Delimiter() []byte
5555
}

runtime/proto_errors.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ func DefaultHTTPProtoErrorHandler(ctx context.Context, mux *ServeMux, marshaler
4444
w.Header().Del("Trailer")
4545

4646
contentType := marshaler.ContentType()
47-
// Check marshaler on run time in order to keep backwards compatability
47+
// Check marshaler on run time in order to keep backwards compatibility
4848
// An interface param needs to be added to the ContentType() function on
4949
// the Marshal interface to be able to remove this check
5050
if typeMarshaler, ok := marshaler.(contentTypeMarshaler); ok {

0 commit comments

Comments
 (0)