Format example scripts better.

This commit is contained in:
Stephen Chung
2022-01-20 12:06:36 +08:00
parent 6b06019265
commit b63b4cb3af
22 changed files with 72 additions and 30 deletions

View File

@@ -1,7 +1,9 @@
// This script runs an if expression.
let a = 42;
let b = 123;
let x = if a <= b { // if-expression
let x = if a <= b { // <- if-expression
b - a
} else {
a - b