summaryrefslogtreecommitdiff
path: root/docs/language
diff options
context:
space:
mode:
Diffstat (limited to 'docs/language')
-rw-r--r--docs/language/index.md3
-rw-r--r--docs/language/ownership.md2
2 files changed, 4 insertions, 1 deletions
diff --git a/docs/language/index.md b/docs/language/index.md
index ee2ea70..371ecf1 100644
--- a/docs/language/index.md
+++ b/docs/language/index.md
@@ -48,6 +48,7 @@ Underscores `_` can separate digits in a number
```text
100_000
1.100_000
+1_ // Invalid
```
## String Literals
@@ -179,6 +180,8 @@ Move loop to next iteration
```text
? condition { statements }
+? condition { true statements } { false statements }
+
? {
condition { statements }
{ default statements }
diff --git a/docs/language/ownership.md b/docs/language/ownership.md
index db48c6a..76f28ae 100644
--- a/docs/language/ownership.md
+++ b/docs/language/ownership.md
@@ -19,7 +19,7 @@
References are automatically taken if the function signature specifies ref
```text
-inc_push_to_ref : ([`ref x; y]
+inc_push_to_ref : ([%ref x; y]
x `push y + 1
)
int_array : Array[I64] $ ()