aboutsummaryrefslogtreecommitdiff
path: root/docs/ranges.md
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-10-09 13:48:45 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-10-09 13:48:45 -0400
commit5a80ff0db3690943a522e38152c86393ab0eb594 (patch)
treee9acbe040b9216dc456b8d7f99852a42800ff998 /docs/ranges.md
parent63d48e9febf2aa65de4cfd40489b05cbcdfd463a (diff)
Update docs to standardize function signature formatting
Diffstat (limited to 'docs/ranges.md')
-rw-r--r--docs/ranges.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/ranges.md b/docs/ranges.md
index 6565f94d..799b0eb3 100644
--- a/docs/ranges.md
+++ b/docs/ranges.md
@@ -18,9 +18,9 @@ created using the `Int.to()` method like so: `5:to(10)`. Ranges are
**Description:**
Returns a reversed copy of the range.
-**Usage:**
+**Signature:**
```tomo
-reversed(range: Range -> Range)
+func reversed(range: Range -> Range)
```
**Parameters:**
@@ -43,9 +43,9 @@ A new `Range` with the order of elements reversed.
**Description:**
Creates a new range with a specified step value.
-**Usage:**
+**Signature:**
```tomo
-by(range: Range, step: Int -> Range)
+func by(range: Range, step: Int -> Range)
```
**Parameters:**