At ":h lambda", there is some erroneous markup. It mistakenly is
"|expr1|", which takes the user to the help for the ternary conditional!
I think what was meant was "{expr1}", but even better would just be
"{expr}".
The following diff fixes it, along with one tiny, unrelated omission.
-Manny
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt
index 011807b..617d3b5 100644
--- a/runtime/doc/eval.txt
+++ b/runtime/doc/eval.txt
@@ -1215,13 +1215,13 @@ See below |functions|.
lambda expression *expr-lambda* *lambda*
-----------------
-{args -> expr1} lambda expression
+{args -> expr} lambda expression
A lambda expression creates a new unnamed function which returns the
result of
-evaluating |expr1|. Lambda expressions differ from |user-functions| in
+evaluating {expr}. Lambda expressions differ from |user-functions| in
the following ways:
-1. The body of the lambda expression is an |expr1| and not a sequence of
|Ex|
+1. The body of the lambda expression is an {expr} and not a sequence of
|Ex|
commands.
2. The prefix "a:" should not be used for arguments. E.g.: >
:let F = {arg1, arg2 -> arg1 - arg2}
@@ -1981,7 +1981,7 @@ assert_notmatch({pat}, {text} [, {msg}]) none assert
{pat} not matches {text}
assert_true({actual} [, {msg}]) none assert {actual} is true
asin({expr}) Float arc sine of {expr}
atan({expr}) Float arc tangent of {expr}
-atan2({expr}, {expr}) Float arc tangent of {expr1} / {expr2}
+atan2({expr1}, {expr2}) Float arc tangent of {expr1} / {expr2}
browse({save}, {title}, {initdir}, {default})
String put up a file requester
browsedir({title}, {initdir}) String put up a directory requester
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.