aboutsummaryrefslogtreecommitdiff
path: root/docs/tables.md
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-10-09 13:26:28 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-10-09 13:26:28 -0400
commit074cf22ad462eafe963e4a749b2b74cab51211a1 (patch)
treee1d7f938f2d949cc5dcf67ca648f200663e36562 /docs/tables.md
parent47fca946065508cff4151a32b3008c161983fd9d (diff)
Change function syntax from `func(args)->ret` to `func(args -> ret)`
Diffstat (limited to 'docs/tables.md')
-rw-r--r--docs/tables.md12
1 files changed, 6 insertions, 6 deletions
diff --git a/docs/tables.md b/docs/tables.md
index f589eb2e..e0c9ff38 100644
--- a/docs/tables.md
+++ b/docs/tables.md
@@ -118,7 +118,7 @@ not already in the table, its value will be assumed to be zero.
**Usage:**
```markdown
-bump(t:{K:V}, key: K, amount: Int = 1) -> Void
+bump(t:{K:V}, key: K, amount: Int = 1 -> Void)
```
**Parameters:**
@@ -148,7 +148,7 @@ Removes all key-value pairs from the table.
**Usage:**
```markdown
-t:clear() -> Void
+t:clear()
```
**Parameters:**
@@ -172,7 +172,7 @@ Retrieves the value associated with a key, or returns null if the key is not pre
**Usage:**
```markdown
-t:get(key: K) -> V?
+t:get(key: K -> V?)
```
**Parameters:**
@@ -208,7 +208,7 @@ Checks if the table contains a specified key.
**Usage:**
```markdown
-has(t:{K:V}, key: K) -> Bool
+has(t:{K:V}, key: K -> Bool)
```
**Parameters:**
@@ -236,7 +236,7 @@ Removes the key-value pair associated with a specified key.
**Usage:**
```markdown
-remove(t:{K:V}, key: K) -> Void
+remove(t:{K:V}, key: K -> Void)
```
**Parameters:**
@@ -264,7 +264,7 @@ Sets or updates the value associated with a specified key.
**Usage:**
```markdown
-set(t:{K:V}, key: K, value: V) -> Void
+set(t:{K:V}, key: K, value: V -> Void)
```
**Parameters:**