vlang / pcre

MIT License
35 stars 6 forks source link

Fixes #3 - Initialization of err and studyerr fails #4

Closed rolfschmidt closed 3 years ago

rolfschmidt commented 3 years ago
pcre/regex.v:57:9: error: cannot initialize builtin type `string`
   55 | */
   56 | pub fn new_regex(source string, options int) ?Regex {
   57 |     err := string{}
      |            ~~~~~~~~
   58 |     studyerr := string{}
   59 |     erroffset := 0
pcre/regex.v:58:14: error: cannot initialize builtin type `string`
   56 | pub fn new_regex(source string, options int) ?Regex {
   57 |     err := string{}
   58 |     studyerr := string{}
      |                 ~~~~~~~~
   59 |     erroffset := 0
   60 |     captures := 0