Skip to content

Commit 9af54ae

Browse files
authored
all: fix some comments (#296)
Signed-off-by: cui fliter <[email protected]>
1 parent 59aced7 commit 9af54ae

File tree

10 files changed

+10
-10
lines changed

10 files changed

+10
-10
lines changed

cmd/aefix/typecheck.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ func makeExprList(a []*ast.Ident) []ast.Expr {
223223
return b
224224
}
225225

226-
// Typecheck1 is the recursive form of typecheck.
226+
// typecheck1 is the recursive form of typecheck.
227227
// It is like typecheck but adds to the information in typeof
228228
// instead of allocating a new map.
229229
func typecheck1(cfg *TypeConfig, f interface{}, typeof map[interface{}]string, assign map[string][]interface{}) {

datastore/query.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -754,7 +754,7 @@ func (c Cursor) String() string {
754754
return strings.TrimRight(base64.URLEncoding.EncodeToString(b), "=")
755755
}
756756

757-
// Decode decodes a cursor from its base-64 string representation.
757+
// DecodeCursor decodes a cursor from its base-64 string representation.
758758
func DecodeCursor(s string) (Cursor, error) {
759759
if s == "" {
760760
return Cursor{&zeroCC}, nil

delay/delay.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ func (f *Function) Task(args ...interface{}) (*taskqueue.Task, error) {
297297
}, nil
298298
}
299299

300-
// Request returns the special task-queue HTTP request headers for the current
300+
// RequestHeaders returns the special task-queue HTTP request headers for the current
301301
// task queue handler. Returns an error if called from outside a delay.Func.
302302
func RequestHeaders(c context.Context) (*taskqueue.RequestHeaders, error) {
303303
if ret, ok := c.Value(headersContextKey).(*taskqueue.RequestHeaders); ok {

internal/identity.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func IsStandard() bool {
3434
return appengineStandard || IsSecondGen()
3535
}
3636

37-
// IsStandard is the implementation of the wrapper function of the same name in
37+
// IsSecondGen is the implementation of the wrapper function of the same name in
3838
// ../appengine.go. See that file for commentary.
3939
func IsSecondGen() bool {
4040
// Second-gen runtimes set $GAE_ENV so we use that to check if we're on a second-gen runtime.

taskqueue/taskqueue.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ type RetryOptions struct {
6262
ApplyZeroMaxDoublings bool
6363
}
6464

65-
// toRetryParameter converts RetryOptions to pb.TaskQueueRetryParameters.
65+
// toRetryParameters converts RetryOptions to pb.TaskQueueRetryParameters.
6666
func (opt *RetryOptions) toRetryParameters() *pb.TaskQueueRetryParameters {
6767
params := &pb.TaskQueueRetryParameters{}
6868
if opt.RetryLimit > 0 {

v2/cmd/aefix/typecheck.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ func makeExprList(a []*ast.Ident) []ast.Expr {
223223
return b
224224
}
225225

226-
// Typecheck1 is the recursive form of typecheck.
226+
// typecheck1 is the recursive form of typecheck.
227227
// It is like typecheck but adds to the information in typeof
228228
// instead of allocating a new map.
229229
func typecheck1(cfg *TypeConfig, f interface{}, typeof map[interface{}]string, assign map[string][]interface{}) {

v2/datastore/query.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -754,7 +754,7 @@ func (c Cursor) String() string {
754754
return strings.TrimRight(base64.URLEncoding.EncodeToString(b), "=")
755755
}
756756

757-
// Decode decodes a cursor from its base-64 string representation.
757+
// DecodeCursor decodes a cursor from its base-64 string representation.
758758
func DecodeCursor(s string) (Cursor, error) {
759759
if s == "" {
760760
return Cursor{&zeroCC}, nil

v2/delay/delay.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ func (f *Function) Task(args ...interface{}) (*taskqueue.Task, error) {
304304
}, nil
305305
}
306306

307-
// Request returns the special task-queue HTTP request headers for the current
307+
// RequestHeaders returns the special task-queue HTTP request headers for the current
308308
// task queue handler. Returns an error if called from outside a delay.Func.
309309
func RequestHeaders(c context.Context) (*taskqueue.RequestHeaders, error) {
310310
if ret, ok := c.Value(headersContextKey).(*taskqueue.RequestHeaders); ok {

v2/internal/identity.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ func IsStandard() bool {
3838
return IsSecondGen()
3939
}
4040

41-
// IsStandard is the implementation of the wrapper function of the same name in
41+
// IsSecondGen is the implementation of the wrapper function of the same name in
4242
// ../appengine.go. See that file for commentary.
4343
func IsSecondGen() bool {
4444
// Second-gen runtimes set $GAE_ENV so we use that to check if we're on a second-gen runtime.

v2/taskqueue/taskqueue.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ type RetryOptions struct {
6262
ApplyZeroMaxDoublings bool
6363
}
6464

65-
// toRetryParameter converts RetryOptions to pb.TaskQueueRetryParameters.
65+
// toRetryParameters converts RetryOptions to pb.TaskQueueRetryParameters.
6666
func (opt *RetryOptions) toRetryParameters() *pb.TaskQueueRetryParameters {
6767
params := &pb.TaskQueueRetryParameters{}
6868
if opt.RetryLimit > 0 {

0 commit comments

Comments
 (0)