Skip to content

Commit

Permalink
Merge pull request #51 from CodeLingoBot/rewrite
Browse files Browse the repository at this point in the history
Fix function comments based on best practices from Effective Go
  • Loading branch information
suntong authored Feb 28, 2019
2 parents a48c2ce + 964845c commit 38b9998
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion command.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func ExactN(num int) NumCheckFunc { return func(n int) bool { return n == num }
// AtLeast returns a NumCheckFunc which checks if a number is greater than or equal to num
func AtLeast(num int) NumCheckFunc { return func(n int) bool { return n >= num } }

// AtLeast returns a NumCheckFunc which checks if a number is less than or equal to num
// AtMost returns a NumCheckFunc which checks if a number is less than or equal to num
func AtMost(num int) NumCheckFunc { return func(n int) bool { return n <= num } }

type (
Expand Down

0 comments on commit 38b9998

Please sign in to comment.