From 698bee234d880b5bf3ca14b73acab265e1c7445f Mon Sep 17 00:00:00 2001 From: "He-Pin(kerr)" Date: Fri, 19 Jun 2026 05:47:29 +0800 Subject: [PATCH] docs: document array parameter support in stripChars/lstripChars/rstripChars --- doc/ref/stdlib.html | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/doc/ref/stdlib.html b/doc/ref/stdlib.html index af9a0648..ef45125a 100644 --- a/doc/ref/stdlib.html +++ b/doc/ref/stdlib.html @@ -625,6 +625,14 @@

Example: std.stripChars("cacabbbbaacc", "ac") yields "bbbb".

+

+ The chars parameter may also be an array of single-character strings. When an + array is provided, only single-character string elements are used as characters to strip; + non-string elements and multi-character strings are silently ignored. +

+

+ Example: std.stripChars("abcba", ["a", "c"]) yields "bcb". +

@@ -660,6 +668,14 @@

Example: std.lstripChars("cacabbbbaacc", "ac") yields "bbbbaacc".

+

+ The chars parameter may also be an array of single-character strings. When an + array is provided, only single-character string elements are used as characters to strip; + non-string elements and multi-character strings are silently ignored. +

+

+ Example: std.lstripChars("abcba", ["a", "c"]) yields "bcba". +

@@ -695,6 +711,14 @@

Example: std.rstripChars("cacabbbbaacc", "ac") yields "cacabbbb".

+

+ The chars parameter may also be an array of single-character strings. When an + array is provided, only single-character string elements are used as characters to strip; + non-string elements and multi-character strings are silently ignored. +

+

+ Example: std.rstripChars("abcba", ["a", "c"]) yields "abcb". +