Skip to content

Commit

Permalink
all: fix some comments (#296)
Browse files Browse the repository at this point in the history
Signed-off-by: cui fliter <imcusg@gmail.com>
  • Loading branch information
cuishuang committed Mar 15, 2023
1 parent 59aced7 commit 9af54ae
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
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 @@ -297,7 +297,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 @@ -34,7 +34,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 @@ -304,7 +304,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

0 comments on commit 9af54ae

Please sign in to comment.