From 5f7456533f8d56a3ca01b6e556371afadebc10c0 Mon Sep 17 00:00:00 2001 From: Pietro Cerutti Date: Tue, 6 Oct 2026 13:06:13 +0000 Subject: [PATCH] Clarify what (string-length) returns, provide hints to get the number of bytes instead --- manual/Module (scheme base) | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/manual/Module (scheme base) b/manual/Module (scheme base) index b92b1b72..e4938992 100644 --- a/manual/Module (scheme base) +++ b/manual/Module (scheme base) @@ -3235,7 +3235,9 @@ Returns a newly allocated string composed of the arguments. (string-length string)
-Returns the number of characters in the given string. +Returns the number of Unicode code points in the given string. +To get the number of bytes, use {{number-of-bytes}} from +[[Module (chicken memory representation)|the (chicken memory representation) module]]. (string-ref string k)
-- 2.56.0