]> git.lizzy.rs Git - minetest.git/blobdiff - doc/lua_api.txt
Error when string.split is given empty separator (#13132)
[minetest.git] / doc / lua_api.txt
index fb6bc9df8e54dda759a875f1eaaeb57e07f2fc1f..de0517d42d6a75b41875d8b08d8dbe0d58ddb6fd 100644 (file)
@@ -3623,7 +3623,7 @@ Helper functions
 * `math.round(x)`: Returns `x` rounded to the nearest integer.
     * At a multiple of 0.5, rounds away from zero.
 * `string.split(str, separator, include_empty, max_splits, sep_is_pattern)`
-    * `separator`: string, default: `","`
+    * `separator`: string, cannot be empty, default: `","`
     * `include_empty`: boolean, default: `false`
     * `max_splits`: number, if it's negative, splits aren't limited,
       default: `-1`