Skip to content

Commit f1b3afe

Browse files
chore: fix some function names in comment
1 parent d5e0048 commit f1b3afe

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

context/request_params.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ func (r *RequestParams) GetTrimFileUint64(key string) uint64 {
174174
return v
175175
}
176176

177-
// GetTrimFileUint64 same as GetTrimFile but it returns the value as uint.
177+
// GetTrimFileUint same as GetTrimFile but it returns the value as uint.
178178
func (r *RequestParams) GetTrimFileUint(key string) uint {
179179
return uint(r.GetTrimFileUint64(key))
180180
}

x/client/client.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ type Uploader struct {
336336
Writer *multipart.Writer
337337
}
338338

339-
// AddFileSource adds a form field to the uploader with the given key.
339+
// AddField adds a form field to the uploader with the given key.
340340
func (u *Uploader) AddField(key, value string) error {
341341
f, err := u.Writer.CreateFormField(key)
342342
if err != nil {

x/pagination/pagination.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ func (opts ListOptions) GetLimit() int {
5959
return DefaultSize
6060
}
6161

62-
// GetLimit returns the OFFSET value of a query.
62+
// GetOffset returns the OFFSET value of a query.
6363
func (opts ListOptions) GetOffset() int {
6464
if opts.Page > 1 {
6565
return (opts.Page - 1) * opts.GetLimit()

0 commit comments

Comments
 (0)