mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 17:24:06 +00:00
Fixing control flow examples
This commit is contained in:
parent
c9e250a1ab
commit
d4a518dc0a
@ -63,21 +63,24 @@ fn main() {
|
||||
#### `"Block"` (default):
|
||||
|
||||
```rust
|
||||
if lorem_ipsum &&
|
||||
dolor_sit &&
|
||||
amet_consectetur
|
||||
{
|
||||
// ...
|
||||
fn main() {
|
||||
if lorem_ipsum && dolor_sit && amet_consectetur && lorem_sit && dolor_consectetur && amet_ipsum
|
||||
&& lorem_consectetur
|
||||
{
|
||||
// ...
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
#### `"Visual"`:
|
||||
|
||||
```rust
|
||||
if lorem_ipsum &&
|
||||
dolor_sit &&
|
||||
amet_consectetur {
|
||||
// ...
|
||||
fn main() {
|
||||
if lorem_ipsum && dolor_sit && amet_consectetur && lorem_sit && dolor_consectetur && amet_ipsum
|
||||
&& lorem_consectetur
|
||||
{
|
||||
// ...
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user