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

chore: fix some function names in comment #2497

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion context/request_params.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ func (r *RequestParams) GetTrimFileUint64(key string) uint64 {
return v
}

// GetTrimFileUint64 same as GetTrimFile but it returns the value as uint.
// GetTrimFileUint same as GetTrimFile but it returns the value as uint.
func (r *RequestParams) GetTrimFileUint(key string) uint {
return uint(r.GetTrimFileUint64(key))
}
Expand Down
2 changes: 1 addition & 1 deletion x/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ type Uploader struct {
Writer *multipart.Writer
}

// AddFileSource adds a form field to the uploader with the given key.
// AddField adds a form field to the uploader with the given key.
func (u *Uploader) AddField(key, value string) error {
f, err := u.Writer.CreateFormField(key)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion x/pagination/pagination.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func (opts ListOptions) GetLimit() int {
return DefaultSize
}

// GetLimit returns the OFFSET value of a query.
// GetOffset returns the OFFSET value of a query.
func (opts ListOptions) GetOffset() int {
if opts.Page > 1 {
return (opts.Page - 1) * opts.GetLimit()
Expand Down