diff options
Diffstat (limited to 'docs/language')
| -rw-r--r-- | docs/language/index.md | 6 | ||||
| -rw-r--r-- | docs/language/ownership.md | 10 |
2 files changed, 10 insertions, 6 deletions
diff --git a/docs/language/index.md b/docs/language/index.md index 8ef01fd..ee2ea70 100644 --- a/docs/language/index.md +++ b/docs/language/index.md @@ -184,7 +184,7 @@ Move loop to next iteration { default statements } } -? condition {[args] statements } +? condition {[arg] statements } ``` ### Match `#` @@ -192,7 +192,7 @@ Move loop to next iteration ```text # match { target { statements } - target {[args] statements } + target {[arg] statements } { default statements } } ``` @@ -200,5 +200,5 @@ Move loop to next iteration ### Mutation `^` ```test -^ mutation {[args] statements } +^ mutation {[arg] statements } ``` diff --git a/docs/language/ownership.md b/docs/language/ownership.md index 9f29d8d..490363f 100644 --- a/docs/language/ownership.md +++ b/docs/language/ownership.md @@ -10,8 +10,6 @@ ## Assignment is not allowed for movable types that are not shared -## Shared Types - ## To And From Functions # Passing @@ -34,8 +32,14 @@ float_array : Array[F64] $ () `log float_array // Array[F64] $ (1.0; 2.0; 3.0) ``` +# Shared Types + # Locking -Prevent access to a container it's contents are modified +Prevent modification until a mutation occurs ## References + +# Mutating + +Unlock a lock or shared target and prevents modification to everything except the lock target |
