diff --git a/Configurations.md b/Configurations.md index 337b1600061..14ad98cb813 100644 --- a/Configurations.md +++ b/Configurations.md @@ -354,6 +354,57 @@ fn example() { #### `false`: ```rust +fn example() { + // If + foo!( + if x { + foo(); + } else { + bar(); + } + ); + + // IfLet + foo!( + if let Some(..) = x { + foo(); + } else { + bar(); + } + ); + + // While + foo!( + while x { + foo(); + bar(); + } + ); + + // WhileLet + foo!( + while let Some(..) = x { + foo(); + bar(); + } + ); + + // ForLoop + foo!( + for x in y { + foo(); + bar(); + } + ); + + // Loop + foo!( + loop { + foo(); + bar(); + } + ); +} ``` ## `comment_width`