From 09829ae9cd9cbf7f115fc26b56482729979b2aeb Mon Sep 17 00:00:00 2001 From: Qi Xiao Date: Fri, 25 Dec 2020 17:45:32 +0000 Subject: [PATCH] pkg/eval: Update doc of the "not" command. --- pkg/eval/builtin_fn_pred.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pkg/eval/builtin_fn_pred.go b/pkg/eval/builtin_fn_pred.go index b5606c9b..9feb5d44 100644 --- a/pkg/eval/builtin_fn_pred.go +++ b/pkg/eval/builtin_fn_pred.go @@ -62,9 +62,10 @@ func init() { // ▶ $true // ``` // -// **Note**: `not` is a regular command, and thus can be overriden by a -// function definition (though you shouldn't do so), while `and` and `or` are -// implemented as [special commands](language.html#special-commands). +// **Note**: The related logical commands `and` and `or` are implemented as +// [special commands](language.html#special-commands) instead, since they do not +// always evaluate all their arguments. The `not` command always evaluates its +// only argument, and is thus a normal command. // // @cf bool