Răsfoiți Sursa

Update String.substring documentation

Nickolay Grebenshikov 11 ani în urmă
părinte
comite
9e88a9c228
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  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;
 
 	/**
-		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.