From fc03b89ff4d6bdd47eb128385fa997a660c03c32 Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Thu, 10 Jul 2025 17:50:43 +0200 Subject: [PATCH] Fix lessThan doc --- src/libexpr/primops.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libexpr/primops.cc b/src/libexpr/primops.cc index f9f834a62..99ca19d7e 100644 --- a/src/libexpr/primops.cc +++ b/src/libexpr/primops.cc @@ -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, });