浏览代码

Update String.substring documentation

Nickolay Grebenshikov 11 年之前
父节点
当前提交
9e88a9c228
共有 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`.
+		Returns the part of `this` String from `startIndex` to `endIndex` - 1.
 
 
 		If `startIndex` or `endIndex` are negative, 0 is used instead.
 		If `startIndex` or `endIndex` are negative, 0 is used instead.