docs: add block syntax documentation, remove outdated TODOs, and add prefix ~ operator test

This commit is contained in:
Bob Nystrom
2014-04-09 04:18:17 +00:00
parent 0d74b128a5
commit 985b1b9cf7
5 changed files with 70 additions and 9 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ The simplest branching statement, `if` lets you conditionally skip a chunk of co
:::wren
if (ready) IO.print("go!")
That evaluates the parenthesized expression after `if`. If it's true, then the statement after the condition is evaluated. Otherwise it is skipped. Instead of a statement, you can have a block:
That evaluates the parenthesized expression after `if`. If it's true, then the statement after the condition is evaluated. Otherwise it is skipped. Instead of a statement, you can have a [block](syntax.html#blocks):
:::wren
if (ready) {