From c39afb28db3262e286415ddc8cb5ce847ef0ed36 Mon Sep 17 00:00:00 2001 From: "Yang, Bo" Date: Wed, 27 Mar 2024 16:46:50 -0700 Subject: [PATCH] Clarify stringLength is counting bytes --- src/libexpr/primops.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libexpr/primops.cc b/src/libexpr/primops.cc index db4237130..84f24de5a 100644 --- a/src/libexpr/primops.cc +++ b/src/libexpr/primops.cc @@ -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,