Explorar o código

[std] fix documentation of StringTools.replace

closes #7480
Simon Krajewski %!s(int64=6) %!d(string=hai) anos
pai
achega
18205d312d
Modificáronse 1 ficheiros con 2 adicións e 3 borrados
  1. 2 3
      std/StringTools.hx

+ 2 - 3
std/StringTools.hx

@@ -384,9 +384,8 @@ class StringTools {
 		String `by`.
 
 		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.
 	**/