Ver código fonte

[std] fix documentation of StringTools.replace

closes #7480
Simon Krajewski 6 anos atrás
pai
commit
18205d312d
1 arquivos alterados com 2 adições e 3 exclusões
  1. 2 3
      std/StringTools.hx

+ 2 - 3
std/StringTools.hx

@@ -384,9 +384,8 @@ class StringTools {
 		String `by`.
 		String `by`.
 
 
 		If `sub` is the empty String `""`, `by` is inserted after each character
 		If `sub` is the empty String `""`, `by` is inserted after each character
-		of `s`. If `by` is also the empty String `""`, `s` remains unchanged.
-
-		This is a convenience function for `s.split(sub).join(by)`.
+		of `s` except the last one. If `by` is also the empty String `""`, `s`
+		remains unchanged.
 
 
 		If `sub` or `by` are null, the result is unspecified.
 		If `sub` or `by` are null, the result is unspecified.
 	**/
 	**/