Skip to content

Commit ba04ca0

Browse files
Move ternary operator to the future
1 parent e5dbb55 commit ba04ca0

File tree

3 files changed

+15
-6
lines changed

3 files changed

+15
-6
lines changed

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.PHONY: build
2+
build:
3+
@npm install
4+
@npx docusaurus start

docs/future/ternaries.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
sidebar_position: 100
3+
---
4+
5+
# Ternaries
6+
7+
### Ternary operator
8+
9+
```mew
10+
let foo = bar == 1 ? true : false;
11+
```

docs/language/control/conditions.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,4 @@ else if foo < 0 {
1717
else {
1818
// foo is greater than 0
1919
}
20-
```
21-
22-
### Ternary operator
23-
24-
```mew
25-
let foo = bar == 1 ? true : false;
2620
```

0 commit comments

Comments
 (0)