Skip to content

Commit e3d9220

Browse files
brsongraydon
authored andcommitted
---
yaml --- r: 1791 b: refs/heads/master c: 5d98f55 h: refs/heads/master i: 1789: 3b43e60 1787: b48c8cf 1783: e44f782 1775: 19167f9 1759: b99f99b 1727: 8a9b50a 1663: b452c7f 1535: a2e73fd v: v3
1 parent a97487d commit e3d9220

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 92a716d862d92d3cc52a400457d2c3900d0c57a2
2+
refs/heads/master: 5d98f55fcf0c88372101eb137e2cd1c75e00f1a2

trunk/doc/rust.texi

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3310,11 +3310,14 @@ for each (str s in _str.split(txt, "\n")) @{
33103310

33113311
An @code{if} statement is a conditional branch in program control. The form of
33123312
an @code{if} statement is a parenthesized condition expression, followed by a
3313-
consequent block, and an optional trailing @code{else} block. The condition
3314-
expression must have type @code{bool}. If the condition expression evaluates
3315-
to @code{true}, the consequent block is executed and any @code{else} block is
3316-
skipped. If the condition expression evaluates to @code{false}, the consequent
3317-
block is skipped and any @code{else} block is executed.
3313+
consequent block, any number of @code{else if} conditions and blocks, and an
3314+
optional trailing @code{else} block. The condition expressions must have type
3315+
@code{bool}. If a condition expression evaluates to @code{true}, the
3316+
consequent block is executed and any subsequent @code{else if} or @code{else}
3317+
block is skipped. If a condition expression evaluates to @code{false}, the
3318+
consequent block is skipped and any subsequent @code{else if} condition is
3319+
evaluated. If all @code{if} and @code{else if} conditions evaluate to @code{false}
3320+
then any @code{else} block is executed.
33183321

33193322
@node Ref.Stmt.Alt
33203323
@subsection Ref.Stmt.Alt

0 commit comments

Comments
 (0)