aboutsummaryrefslogtreecommitdiffstats
path: root/internal/revision
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2019-11-01 10:08:16 +0100
committerGitHub <noreply@github.com>2019-11-01 10:08:16 +0100
commit1a7db85bca7027d90afdb5ce711622aaac9feaed (patch)
treec550ea453e67a95a22b3dd557b4e1d5044bd5737 /internal/revision
parent3895dfa31c54adf83fdaffd90cf1b5fd4e5d7ff0 (diff)
parent81627ab53e269a762b769b47c004cb4309452492 (diff)
downloadgo-git-1a7db85bca7027d90afdb5ce711622aaac9feaed.tar.gz
Merge pull request #1231 from alexandear/fix-typos
*: fix typos in comments, variables and function names
Diffstat (limited to 'internal/revision')
-rw-r--r--internal/revision/parser.go2
-rw-r--r--internal/revision/parser_test.go2
-rw-r--r--internal/revision/scanner.go2
3 files changed, 3 insertions, 3 deletions
diff --git a/internal/revision/parser.go b/internal/revision/parser.go
index d2c509e..61de386 100644
--- a/internal/revision/parser.go
+++ b/internal/revision/parser.go
@@ -1,5 +1,5 @@
// Package revision extracts git revision from string
-// More informations about revision : https://www.kernel.org/pub/software/scm/git/docs/gitrevisions.html
+// More information about revision : https://www.kernel.org/pub/software/scm/git/docs/gitrevisions.html
package revision
import (
diff --git a/internal/revision/parser_test.go b/internal/revision/parser_test.go
index a58f0ad..fe45228 100644
--- a/internal/revision/parser_test.go
+++ b/internal/revision/parser_test.go
@@ -366,7 +366,7 @@ func (s *ParserSuite) TestParseRefWithValidName(c *C) {
}
}
-func (s *ParserSuite) TestParseRefWithUnvalidName(c *C) {
+func (s *ParserSuite) TestParseRefWithInvalidName(c *C) {
datas := map[string]error{
".master": &ErrInvalidRevision{`must not start with "."`},
"/master": &ErrInvalidRevision{`must not start with "/"`},
diff --git a/internal/revision/scanner.go b/internal/revision/scanner.go
index fb5f333..c46c21b 100644
--- a/internal/revision/scanner.go
+++ b/internal/revision/scanner.go
@@ -10,7 +10,7 @@ import (
// validates it belongs to a rune category
type runeCategoryValidator func(r rune) bool
-// tokenizeExpression aggegates a series of runes matching check predicate into a single
+// tokenizeExpression aggregates a series of runes matching check predicate into a single
// string and provides given tokenType as token type
func tokenizeExpression(ch rune, tokenType token, check runeCategoryValidator, r *bufio.Reader) (token, string, error) {
var data []rune