Skip to content

Commit

Permalink
Clarify stringLength is counting bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
Atry authored Mar 27, 2024
1 parent c0b6907 commit c39afb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libexpr/primops.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit c39afb2

Please sign in to comment.