Forráskód Böngészése

document platform inconsistencies on "".split (closes #2009)

Simon Krajewski 12 éve
szülő
commit
1ebbc19ccb
1 módosított fájl, 3 hozzáadás és 0 törlés
  1. 3 0
      std/String.hx

+ 3 - 0
std/String.hx

@@ -104,6 +104,9 @@ extern class String {
 	/**
 		Splits `this` String at each occurence of `delimiter`.
 		
+		If `this` String is the empty String "", the result is not consistent
+		across targets and may either be `[]` (on Js, Cpp) or `[""]`.
+		
 		If `delimiter` is the empty String "", `this` String is split into an
 		Array of `this.length` elements, where the elements correspond to the
 		characters of `this` String.