mirror of
https://github.com/NixOS/nix.git
synced 2025-02-22 03:42:48 +00:00
Merge pull request #10347 from Atry/patch-2
docs: clarify that `builtins.stringLength` is counting bytes
This commit is contained in:
commit
7829caab49
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user