Răsfoiți Sursa

Fix doc of Array#slice (#5692)

* Fix doc of Array#slice

* Update Array.hx
Kevin Leung 9 ani în urmă
părinte
comite
f48e5e0cc1
1 a modificat fișierele cu 3 adăugiri și 3 ștergeri
  1. 3 3
      std/Array.hx

+ 3 - 3
std/Array.hx

@@ -124,11 +124,11 @@ extern class Array<T> {
 		`this` Array.
 		`this` Array.
 
 
 		If `pos` or `end` are negative, their offsets are calculated from the
 		If `pos` or `end` are negative, their offsets are calculated from the
-		end	of `this` Array by `this.length + pos` and `this.length + end`
+		end of `this` Array by `this.length + pos` and `this.length + end`
 		respectively. If this yields a negative value, 0 is used instead.
 		respectively. If this yields a negative value, 0 is used instead.
 
 
-		If `pos` exceeds `this.length` or if `end` exceeds or equals `pos`,
-		the result is `[]`.
+		If `pos` exceeds `this.length` or if `end` is less than or equals
+		`pos`, the result is `[]`.
 	**/
 	**/
 	function slice( pos : Int, ?end : Int ) : Array<T>;
 	function slice( pos : Int, ?end : Int ) : Array<T>;