1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2024-09-19 23:03:53 -04:00

Merge pull request #10347 from Atry/patch-2

docs: clarify that `builtins.stringLength` is counting bytes
This commit is contained in:
Eelco Dolstra 2024-03-28 15:56:22 +01:00 committed by GitHub
commit 7829caab49
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", .name = "__stringLength",
.args = {"e"}, .args = {"e"},
.doc = R"( .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. evaluation is aborted.
)", )",
.fun = prim_stringLength, .fun = prim_stringLength,