Quellcode durchsuchen

Update String.substring documentation

Nickolay Grebenshikov vor 11 Jahren
Ursprung
Commit
9e88a9c228
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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.