Skip to content

Commit 69ed026

Browse files
CodeLingoTeamunknwon
authored andcommitted
Fix function comments based on best practices from Effective Go (#39)
Signed-off-by: CodeLingo Bot <bot@codelingo.io>
1 parent 7f0c503 commit 69ed026

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

command.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ func (c *Command) RunInDirPipeline(dir string, stdout, stderr io.Writer) error {
117117
return c.RunInDirTimeoutPipeline(-1, dir, stdout, stderr)
118118
}
119119

120-
// RunInDir executes the command in given directory
120+
// RunInDirBytes executes the command in given directory
121121
// and returns stdout in []byte and error (combined with stderr).
122122
func (c *Command) RunInDirBytes(dir string) ([]byte, error) {
123123
return c.RunInDirTimeout(-1, dir)

commit.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ func (c *Commit) GetCommitByPath(relpath string) (*Commit, error) {
9797
return c.repo.getCommitByPathWithID(c.ID, relpath)
9898
}
9999

100-
// AddAllChanges marks local changes to be ready for commit.
100+
// AddChanges marks local changes to be ready for commit.
101101
func AddChanges(repoPath string, all bool, files ...string) error {
102102
cmd := NewCommand("add")
103103
if all {

0 commit comments

Comments
 (0)