Skip to content

Commit 13b11e0

Browse files
goodfirmraphael
andauthored
chore: fix function names in comment (#3504)
Signed-off-by: goodfirm <[email protected]> Co-authored-by: Raphael Simon <[email protected]>
1 parent fd0fb1c commit 13b11e0

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

codegen/service/service_data.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1625,7 +1625,7 @@ func buildProjections(projected, att *expr.AttributeExpr, viewspkg string, scope
16251625
return projections
16261626
}
16271627

1628-
// buildValidationData builds the data required to generate validations for the
1628+
// buildValidations builds the data required to generate validations for the
16291629
// projected types.
16301630
func buildValidations(projected *expr.AttributeExpr, scope *codegen.NameScope) []*ValidateData {
16311631
var (

expr/http_body_types.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ func removeAttribute(attr *MappedAttributeExpr, name string) {
480480
}
481481
}
482482

483-
// extendedBodyAttribute returns an attribute describing the HTTP
483+
// extendBodyAttribute returns an attribute describing the HTTP
484484
// request/response body type by merging any Bases and References to the parent
485485
// attribute. This must be invoked during validation or to determine the actual
486486
// body type by removing any headers/params/cookies.

grpc/codegen/protobuf.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ func protoBufFullMessageName(att *expr.AttributeExpr, pkg string, s *codegen.Nam
213213
}
214214
}
215215

216-
// protoBufGoFullTypeName returns the protocol buffer type name for the given
216+
// protoBufGoTypeName returns the protocol buffer type name for the given
217217
// attribute generated after compiling the proto file (in *.pb.go).
218218
func protoBufGoTypeName(att *expr.AttributeExpr, s *codegen.NameScope) string {
219219
return protoBufGoFullTypeName(att, "", s)

http/codegen/openapi/v3/builder.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ func buildOperation(key string, r *expr.RouteExpr, bodies *EndpointBodies, rand
356356
}
357357
}
358358

359-
// buildOperation builds the OpenAPI Operation object for the given file server.
359+
// buildFileServerOperation builds the OpenAPI Operation object for the given file server.
360360
func buildFileServerOperation(key string, fs *expr.HTTPFileServerExpr, api *expr.APIExpr) *Operation {
361361
wildcards := expr.ExtractHTTPWildcards(key)
362362
svc := fs.Service

0 commit comments

Comments
 (0)