Skip to content

Commit 36194cc

Browse files
committed
quote argument names in comment to avoid spelling-check errors
1 parent e6580dc commit 36194cc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

modules/git/repo_branch_gogit.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ func (repo *Repository) IsBranchExist(name string) bool {
5050
return reference.Type() != plumbing.InvalidReference
5151
}
5252

53-
// GetBranches returns branches from the repository, skipping skip initial branches and
54-
// returning at most limit branches, or all branches if limit is 0.
53+
// GetBranches returns branches from the repository, skipping "skip" initial branches and
54+
// returning at most "limit" branches, or all branches if "limit" is 0.
5555
func (repo *Repository) GetBranchNames(skip, limit int) ([]string, int, error) {
5656
var branchNames []string
5757

modules/git/repo_branch_nogogit.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ func (repo *Repository) IsBranchExist(name string) bool {
5959
return repo.IsReferenceExist(BranchPrefix + name)
6060
}
6161

62-
// GetBranchNames returns branches from the repository, skipping initial branches and
63-
// returning at most limit branches, or all branches if limit is 0.
62+
// GetBranchNames returns branches from the repository, skipping "skip" initial branches and
63+
// returning at most "limit" branches, or all branches if "limit" is 0.
6464
func (repo *Repository) GetBranchNames(skip, limit int) ([]string, int, error) {
6565
return callShowRef(repo.Ctx, repo.Path, BranchPrefix, TrustedCmdArgs{BranchPrefix, "--sort=-committerdate"}, skip, limit)
6666
}

0 commit comments

Comments
 (0)