Browse Source

Chanage '-1' to 'not including'

Nickolay Grebenshikov 11 years ago
parent
commit
2c4888195a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      std/String.hx

+ 1 - 1
std/String.hx

@@ -141,7 +141,7 @@ extern class String {
 	function substr( pos : Int, ?len : Int ) : String;
 	function substr( pos : Int, ?len : Int ) : String;
 
 
 	/**
 	/**
-		Returns the part of `this` String from `startIndex` to `endIndex` - 1.
+		Returns the part of `this` String from `startIndex` to but not including `endIndex`.
 
 
 		If `startIndex` or `endIndex` are negative, 0 is used instead.
 		If `startIndex` or `endIndex` are negative, 0 is used instead.