From 5562c1489f90c2886d28d2044664bfa6735d40df Mon Sep 17 00:00:00 2001 From: crystalstall Date: Mon, 2 Sep 2024 15:18:42 +0800 Subject: [PATCH] chore: fix some function names Signed-off-by: crystalstall --- pkg/cmd/issue/shared/lookup.go | 2 +- pkg/markdown/markdown.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/cmd/issue/shared/lookup.go b/pkg/cmd/issue/shared/lookup.go index f93b0867d..be79f9a73 100644 --- a/pkg/cmd/issue/shared/lookup.go +++ b/pkg/cmd/issue/shared/lookup.go @@ -36,7 +36,7 @@ func IssueFromArgWithFields(httpClient *http.Client, baseRepoFn func() (ghrepo.I return issue, baseRepo, err } -// IssuesFromArgWithFields loads 1 or more issues or pull requests with the specified fields. If some of the fields +// IssuesFromArgsWithFields loads 1 or more issues or pull requests with the specified fields. If some of the fields // could not be fetched by GraphQL, this returns non-nil issues and a *PartialLoadError. func IssuesFromArgsWithFields(httpClient *http.Client, baseRepoFn func() (ghrepo.Interface, error), args []string, fields []string) ([]*api.Issue, ghrepo.Interface, error) { var issuesRepo ghrepo.Interface diff --git a/pkg/markdown/markdown.go b/pkg/markdown/markdown.go index 1aab0bcd3..f3f4951af 100644 --- a/pkg/markdown/markdown.go +++ b/pkg/markdown/markdown.go @@ -9,7 +9,7 @@ func WithoutIndentation() glamour.TermRendererOption { return ghMarkdown.WithoutIndentation() } -// WithoutWrap is a rendering option that set the character limit for soft +// WithWrap is a rendering option that set the character limit for soft // wrapping the markdown rendering. There is a max limit of 120 characters. // If 0 is passed then wrapping is disabled. func WithWrap(w int) glamour.TermRendererOption {