Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

all: fix some comments #296

Merged
merged 1 commit into from
Mar 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmd/aefix/typecheck.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ func makeExprList(a []*ast.Ident) []ast.Expr {
return b
}

// Typecheck1 is the recursive form of typecheck.
// typecheck1 is the recursive form of typecheck.
// It is like typecheck but adds to the information in typeof
// instead of allocating a new map.
func typecheck1(cfg *TypeConfig, f interface{}, typeof map[interface{}]string, assign map[string][]interface{}) {
Expand Down
2 changes: 1 addition & 1 deletion datastore/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,7 @@ func (c Cursor) String() string {
return strings.TrimRight(base64.URLEncoding.EncodeToString(b), "=")
}

// Decode decodes a cursor from its base-64 string representation.
// DecodeCursor decodes a cursor from its base-64 string representation.
func DecodeCursor(s string) (Cursor, error) {
if s == "" {
return Cursor{&zeroCC}, nil
Expand Down
2 changes: 1 addition & 1 deletion delay/delay.go
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ func (f *Function) Task(args ...interface{}) (*taskqueue.Task, error) {
}, nil
}

// Request returns the special task-queue HTTP request headers for the current
// RequestHeaders returns the special task-queue HTTP request headers for the current
// task queue handler. Returns an error if called from outside a delay.Func.
func RequestHeaders(c context.Context) (*taskqueue.RequestHeaders, error) {
if ret, ok := c.Value(headersContextKey).(*taskqueue.RequestHeaders); ok {
Expand Down
2 changes: 1 addition & 1 deletion internal/identity.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func IsStandard() bool {
return appengineStandard || IsSecondGen()
}

// IsStandard is the implementation of the wrapper function of the same name in
// IsSecondGen is the implementation of the wrapper function of the same name in
// ../appengine.go. See that file for commentary.
func IsSecondGen() bool {
// Second-gen runtimes set $GAE_ENV so we use that to check if we're on a second-gen runtime.
Expand Down
2 changes: 1 addition & 1 deletion taskqueue/taskqueue.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ type RetryOptions struct {
ApplyZeroMaxDoublings bool
}

// toRetryParameter converts RetryOptions to pb.TaskQueueRetryParameters.
// toRetryParameters converts RetryOptions to pb.TaskQueueRetryParameters.
func (opt *RetryOptions) toRetryParameters() *pb.TaskQueueRetryParameters {
params := &pb.TaskQueueRetryParameters{}
if opt.RetryLimit > 0 {
Expand Down
2 changes: 1 addition & 1 deletion v2/cmd/aefix/typecheck.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ func makeExprList(a []*ast.Ident) []ast.Expr {
return b
}

// Typecheck1 is the recursive form of typecheck.
// typecheck1 is the recursive form of typecheck.
// It is like typecheck but adds to the information in typeof
// instead of allocating a new map.
func typecheck1(cfg *TypeConfig, f interface{}, typeof map[interface{}]string, assign map[string][]interface{}) {
Expand Down
2 changes: 1 addition & 1 deletion v2/datastore/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,7 @@ func (c Cursor) String() string {
return strings.TrimRight(base64.URLEncoding.EncodeToString(b), "=")
}

// Decode decodes a cursor from its base-64 string representation.
// DecodeCursor decodes a cursor from its base-64 string representation.
func DecodeCursor(s string) (Cursor, error) {
if s == "" {
return Cursor{&zeroCC}, nil
Expand Down
2 changes: 1 addition & 1 deletion v2/delay/delay.go
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ func (f *Function) Task(args ...interface{}) (*taskqueue.Task, error) {
}, nil
}

// Request returns the special task-queue HTTP request headers for the current
// RequestHeaders returns the special task-queue HTTP request headers for the current
// task queue handler. Returns an error if called from outside a delay.Func.
func RequestHeaders(c context.Context) (*taskqueue.RequestHeaders, error) {
if ret, ok := c.Value(headersContextKey).(*taskqueue.RequestHeaders); ok {
Expand Down
2 changes: 1 addition & 1 deletion v2/internal/identity.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func IsStandard() bool {
return IsSecondGen()
}

// IsStandard is the implementation of the wrapper function of the same name in
// IsSecondGen is the implementation of the wrapper function of the same name in
// ../appengine.go. See that file for commentary.
func IsSecondGen() bool {
// Second-gen runtimes set $GAE_ENV so we use that to check if we're on a second-gen runtime.
Expand Down
2 changes: 1 addition & 1 deletion v2/taskqueue/taskqueue.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ type RetryOptions struct {
ApplyZeroMaxDoublings bool
}

// toRetryParameter converts RetryOptions to pb.TaskQueueRetryParameters.
// toRetryParameters converts RetryOptions to pb.TaskQueueRetryParameters.
func (opt *RetryOptions) toRetryParameters() *pb.TaskQueueRetryParameters {
params := &pb.TaskQueueRetryParameters{}
if opt.RetryLimit > 0 {
Expand Down