1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-12 19:05:08 +02:00

Merge pull request #13444 from roberth/fix-lessThan-doc

Fix `builtins.lessThan` doc
This commit is contained in:
Eelco Dolstra 2025-07-10 20:32:47 +02:00 committed by GitHub
commit a783468333
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4122,9 +4122,9 @@ static RegisterPrimOp primop_lessThan({
.name = "__lessThan",
.args = {"e1", "e2"},
.doc = R"(
Return `true` if the number *e1* is less than the number *e2*, and
`false` otherwise. Evaluation aborts if either *e1* or *e2* does not
evaluate to a number.
Return `true` if the value *e1* is less than the value *e2*, and `false` otherwise.
Evaluation aborts if either *e1* or *e2* does not evaluate to a number, string or path.
Furthermore, it aborts if *e2* does not match *e1*'s type according to the aforementioned classification of number, string or path.
)",
.fun = prim_lessThan,
});