Explorar el Código

Fix doc of Array#slice (#5692)

* Fix doc of Array#slice

* Update Array.hx
Kevin Leung hace 9 años
padre
commit
f48e5e0cc1
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  1. 3 3
      std/Array.hx

+ 3 - 3
std/Array.hx

@@ -124,11 +124,11 @@ extern class Array<T> {
 		`this` Array.
 
 		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.
 
-		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>;