Skip to content

Commit 17294b8

Browse files
committed
Auto merge of #7634 - chansuke:update-eval-order-depends-docs, r=Manishearth
Fix documentation of eval_order_dependence Fixes #7624. changelog: fix documentation of eval_order_dependence
2 parents 7a0d7d8 + b2f01ef commit 17294b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_lints/src/eval_order_dependence.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ declare_clippy_lint! {
1515
/// order of sub-expressions.
1616
///
1717
/// ### Why is this bad?
18-
/// It is often confusing to read. In addition, the
19-
/// sub-expression evaluation order for Rust is not well documented.
18+
/// It is often confusing to read. As described [here](https://doc.rust-lang.org/reference/expressions.html?highlight=subexpression#evaluation-order-of-operands),
19+
/// the operands of these expressions are evaluated before applying the effects of the expression.
2020
///
2121
/// ### Known problems
2222
/// Code which intentionally depends on the evaluation

0 commit comments

Comments
 (0)