Skip to content

Commit

Permalink
fix: typos in comments and test descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
mrinalwadhwa committed Nov 9, 2018
1 parent 1ea747c commit 0bdffe5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions did.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ func (p *parser) parseScheme() parserStep {

currentIndex := 3 // 4 bytes in 'did:', i.e index 3

// the grammer requires `did:` prefix
// the grammar requires `did:` prefix
if p.input[:currentIndex+1] != "did:" {
return p.errorf(currentIndex, "input does not begin with 'did:' prefix")
}
Expand Down Expand Up @@ -193,7 +193,7 @@ func (p *parser) parseMethod() parserStep {
break
}

// as per the grammer method can only be made of digits 0-9 or small letters a-z
// as per the grammar method can only be made of digits 0-9 or small letters a-z
if isNotDigit(char) && isNotSmallLetter(char) {
return p.errorf(currentIndex, "character is not a-z OR 0-9")
}
Expand Down
2 changes: 1 addition & 1 deletion did_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ func TestParse(t *testing.T) {
}
})

t.Run("succeeds with percent encoded chars in fragement", func(t *testing.T) {
t.Run("succeeds with percent encoded chars in fragment", func(t *testing.T) {
d, err := Parse("did:a:123:456#aaaaaa%20a")
if err != nil {
t.Errorf("error is not nil - %+v", err)
Expand Down

0 comments on commit 0bdffe5

Please sign in to comment.