]> git.proxmox.com Git - rustc.git/blobdiff - src/doc/reference/src/expressions/if-expr.md
New upstream version 1.41.1+dfsg1
[rustc.git] / src / doc / reference / src / expressions / if-expr.md
index 5501dc86f1f90eca1fc43f5f26e607b2e6e490f8..5d04bb5c7012ecffa559d1ee4b7fdbb755e32715 100644 (file)
@@ -97,6 +97,7 @@ assert_eq!(a, 3);
 
 An `if let` expression is equivalent to a [`match` expression] as follows:
 
+<!-- ignore: expansion example -->
 ```rust,ignore
 if let PATS = EXPR {
     /* body */
@@ -107,6 +108,7 @@ if let PATS = EXPR {
 
 is equivalent to
 
+<!-- ignore: expansion example -->
 ```rust,ignore
 match EXPR {
     PATS => { /* body */ },
@@ -135,6 +137,7 @@ of the language (the implementation of if-let chains - see [eRFC 2947][_eRFCIfLe
 When lazy boolean operator expression is desired, this can be achieved
 by using parenthesis as below:
 
+<!-- ignore: psuedo code -->
 ```rust,ignore
 // Before...
 if let PAT = EXPR && EXPR { .. }
@@ -149,10 +152,10 @@ if let PAT = EXPR || EXPR { .. }
 if let PAT = ( EXPR || EXPR ) { .. }
 ```
 
-[_BlockExpression_]: expressions/block-expr.html
-[_Expression_]: expressions.html
-[_LazyBooleanOperatorExpression_]: expressions/operator-expr.html#lazy-boolean-operators
-[_MatchArmPatterns_]: expressions/match-expr.html
+[_BlockExpression_]: block-expr.md
+[_Expression_]: ../expressions.md
+[_LazyBooleanOperatorExpression_]: operator-expr.md#lazy-boolean-operators
+[_MatchArmPatterns_]: match-expr.md
 [_eRFCIfLetChain_]: https://github.com/rust-lang/rfcs/blob/master/text/2497-if-let-chains.md#rollout-plan-and-transitioning-to-rust-2018
-[`match` expression]: expressions/match-expr.html
-[scrutinee]: glossary.html#scrutinee
+[`match` expression]: match-expr.md
+[scrutinee]: ../glossary.md#scrutinee