Skip to content

Commit ce87f5f

Browse files
committed
One line one sentence the statements and expressions chapter.
1 parent da903cf commit ce87f5f

File tree

2 files changed

+4
-17
lines changed

2 files changed

+4
-17
lines changed

src/expressions.md

-9
Original file line numberDiff line numberDiff line change
@@ -129,15 +129,6 @@ assert_eq!(
129129

130130
> **Note**: Since this is applied recursively, these expressions are also evaluated from innermost to outermost, ignoring siblings until there are no inner subexpressions.
131131
132-
## Early Termination
133-
134-
Expressions may be *terminated* early, whether by a jump expression or unwinding.
135-
When terminated, evaluation of the expression stops.
136-
If the expression is the target of termination by a jump expression, then it evaluates to the value specified by the jump expression.
137-
Otherwise, it evaluates to the never type.
138-
139-
**Note**: Destructors are still executed for the expression after being terminated.
140-
141132
## Place Expressions and Value Expressions
142133

143134
Expressions are divided into two main categories: place expressions and value expressions;

src/statements-and-expressions.md

+4-8
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
# Statements and expressions
22

3-
Rust is _primarily_ an expression language. This means that most forms of
4-
value-producing or effect-causing evaluation are directed by the uniform syntax
5-
category of _expressions_. Each kind of expression can typically _nest_ within
6-
each other kind of expression, and rules for evaluation of expressions involve
7-
specifying both the value produced by the expression and the order in which its
8-
sub-expressions are themselves evaluated.
3+
Rust is _primarily_ an expression language.
4+
This means that most forms of value-producing or effect-causing evaluation are directed by the uniform syntax category of _expressions_.
5+
Each kind of expression can typically _nest_ within each other kind of expression, and rules for evaluation of expressions involve specifying both the value produced by the expression and the order in which its sub-expressions are themselves evaluated.
96

10-
In contrast, statements serve _mostly_ to contain and explicitly
11-
sequence expression evaluation.
7+
In contrast, statements serve _mostly_ to contain and explicitly sequence expression evaluation.

0 commit comments

Comments
 (0)