Update README.md
This commit is contained in:
parent
5545f9ee5a
commit
02f65df0f2
@ -28,6 +28,7 @@ var x = (1 + 2) * (6 - 4) / 2;
|
|||||||
|
|
||||||
## Control blocks
|
## Control blocks
|
||||||
|
|
||||||
|
### If
|
||||||
```Rust
|
```Rust
|
||||||
if true {
|
if true {
|
||||||
print("it's true!");
|
print("it's true!");
|
||||||
@ -37,6 +38,7 @@ else {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### While
|
||||||
```Rust
|
```Rust
|
||||||
var x = 10;
|
var x = 10;
|
||||||
while x > 0 {
|
while x > 0 {
|
||||||
|
Loading…
Reference in New Issue
Block a user