diff options
Diffstat (limited to 'docs/type_system/shared.md')
| -rw-r--r-- | docs/type_system/shared.md | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/type_system/shared.md b/docs/type_system/shared.md index d1d3f07..9ddef26 100644 --- a/docs/type_system/shared.md +++ b/docs/type_system/shared.md @@ -5,7 +5,7 @@ Hold multiple references to the same object ```text -Shared[[] Type] +`shared ``` # Garbage Collection @@ -15,11 +15,11 @@ A tracing mark and sweep garbage collector is used # Mutating ```text -x : Shared[Array] $ (1; 2; 3) +x : `shared Array $ (1; 2; 3) ^ x {[y] y `push 4 } -`log x // Shared[Array[I64]] $ (1; 2; 3; 4) +`log x // `shared Array[I64] $ (1; 2; 3; 4) ``` # Operators @@ -31,8 +31,8 @@ x : Shared[Array] $ (1; 2; 3) ### Example sharing data between two shared objects ```text -x : Shared $ 1 -y : Shared $ 0 +x : `shared 1 +y : `shared 0 z : ^ x {[x] x } ^ y {[y] y : z } |
