regex: rephrase doc string (#14159)

Larpon 2022-04-25 15:03:13 +02:00 committed by Jef Roosens
parent 2d381d69ea
commit 1cc8072efa
Signed by: Jef Roosens
GPG Key ID: B75D4F293C7052DB
1 changed files with 2 additions and 1 deletions

View File

@ -14,7 +14,8 @@ import strings
* Inits
*
******************************************************************************/
// regex create a regex object from the query string, retunr RE object and errors as re_err, err_pos
// regex_base returns a regex object (`RE`) generated from `pattern` string and
// detailed information in re_err, err_pos, if an error occurred.
pub fn regex_base(pattern string) (RE, int, int) {
// init regex
mut re := RE{}