From 89418faafd87cbbf0b36bc8bf916904a170073f6 Mon Sep 17 00:00:00 2001 From: nodist Date: Fri, 12 Jun 2026 15:22:19 -0400 Subject: use gnu23 --- docs/language/index.md | 6 +++--- docs/language/ownership.md | 10 +++++++--- 2 files changed, 10 insertions(+), 6 deletions(-) (limited to 'docs/language') 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 -- cgit v1.2.3