Format example scripts better.
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
// This script runs if statements.
|
||||
|
||||
let a = 42;
|
||||
let b = 123;
|
||||
let x = 999;
|
||||
@@ -7,7 +9,7 @@ if a > b {
|
||||
} else if a < b {
|
||||
print("a < b, x should be 0");
|
||||
|
||||
let x = 0; // this 'x' shadows the global 'x'
|
||||
let x = 0; // <- this 'x' shadows the global 'x'
|
||||
print(x); // should print 0
|
||||
} else {
|
||||
print("Oops! a == b");
|
||||
|
Reference in New Issue
Block a user