浏览代码

Chanage '-1' to 'not including'

Nickolay Grebenshikov 11 年之前
父节点
当前提交
2c4888195a
共有 1 个文件被更改,包括 1 次插入1 次删除
  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.