Browse Source

this.matchSub should be this.match

frabbit 11 years ago
parent
commit
a5238cea1b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      std/EReg.hx

+ 1 - 1
std/EReg.hx

@@ -125,7 +125,7 @@ class EReg {
 		
 		This function expects `pos` and `len` to describe a valid substring of
 		`s`, or else the result is unspecified. To get more robust behavior,
-		`this.matchSub(s.substr(pos,len))` can be used instead.
+		`this.match(s.substr(pos,len))` can be used instead.
 		
 		This method modifies the internal state.