Skip to content

Commit

Permalink
go: doc syntax fix
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Bezzubov <[email protected]>
  • Loading branch information
bzz committed May 8, 2019
1 parent e791472 commit 7e4854c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion regex.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ type Regexp struct {
namedGroupInfo NamedGroupInfo
}

// NewRegexp creates and initialize new Regexp with a given pattenr and option.
// NewRegexp creates and initializes a new Regexp with the given pattern and option.
func NewRegexp(pattern string, option int) (re *Regexp, err error) {
return initRegexp(&Regexp{pattern: pattern, encoding: C.ONIG_ENCODING_UTF8}, option)
}
Expand Down

0 comments on commit 7e4854c

Please sign in to comment.