Clarify stringLength is counting bytes

This commit is contained in:
Yang, Bo 2024-03-27 16:46:50 -07:00 committed by GitHub
parent c0b6907ccd
commit c39afb28db
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3859,7 +3859,7 @@ static RegisterPrimOp primop_stringLength({
.name = "__stringLength",
.args = {"e"},
.doc = R"(
Return the length of the string *e*. If *e* is not a string,
Return the number of bytes of the string *e*. If *e* is not a string,
evaluation is aborted.
)",
.fun = prim_stringLength,