diff options
author | Jeremy Evans <code@jeremyevans.net> | 2019-10-10 11:25:54 -0700 |
---|---|---|
committer | Jeremy Evans <code@jeremyevans.net> | 2019-10-10 13:45:19 -0700 |
commit | 29c1e9a0d4c855781853f0ad41b0125f42cf504d (patch) | |
tree | 55f1f0b06ee20186f916cb7d99e4fd2e4edaa970 /doc/keywords.rdoc | |
parent | ddb0267e76d4127e66fec9b5865d053c6ed9721a (diff) |
Document the difference between expressions and statements [ci skip]
In the grammar, all expressions are statements, but not all
statements are expressions. Some parts of the grammar accept
expressions and not other types of statements, which causes
similar looking code to parse differently due to operator
precedence.
Mostly from Dan0042 (Daniel DeLorme).
Fixes [Bug #16092]
Diffstat (limited to 'doc/keywords.rdoc')
-rw-r--r-- | doc/keywords.rdoc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/keywords.rdoc b/doc/keywords.rdoc index 98bbd5e864..b2f72da272 100644 --- a/doc/keywords.rdoc +++ b/doc/keywords.rdoc @@ -76,7 +76,7 @@ for:: expressions}[rdoc-ref:syntax/control_expressions.rdoc] if:: - Used for +if+ and modifier +if+ expressions. See {control + Used for +if+ and modifier +if+ statements. See {control expressions}[rdoc-ref:syntax/control_expressions.rdoc] in:: @@ -137,7 +137,7 @@ undef:: See {modules and classes}[rdoc-ref:syntax/modules_and_classes.rdoc] unless:: - Used for +unless+ and modifier +unless+ expressions. See {control + Used for +unless+ and modifier +unless+ statements. See {control expressions}[rdoc-ref:syntax/control_expressions.rdoc] until:: |