From 7e4854c26fadf2b925f46bd0fb5d656bab488398 Mon Sep 17 00:00:00 2001 From: Alexander Bezzubov Date: Wed, 8 May 2019 14:19:31 +0200 Subject: [PATCH] go: doc syntax fix Signed-off-by: Alexander Bezzubov --- regex.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/regex.go b/regex.go index 05f8949..cbb647c 100644 --- a/regex.go +++ b/regex.go @@ -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) }