diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-04-21 14:58:28 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-04-21 14:58:28 -0400 |
| commit | 20c34833bbc105675d014c8a0a4d2b17fc787c26 (patch) | |
| tree | 9e7826eea5490a8d62451401c920da6d27175718 /api/lists.yaml | |
| parent | 3b1acb8ac5788061b90aeb9069ddecacf265f20c (diff) | |
Fix old syntax in docs
Diffstat (limited to 'api/lists.yaml')
| -rw-r--r-- | api/lists.yaml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/api/lists.yaml b/api/lists.yaml index 595555ac..d729fd66 100644 --- a/api/lists.yaml +++ b/api/lists.yaml @@ -91,7 +91,7 @@ List.find: return: type: 'Int?' description: > - The index of the first occurrence or `!Int` if not found. + The index of the first occurrence or `none` if not found. args: list: type: '[T]' @@ -470,7 +470,7 @@ List.sample: The number of elements to sample. weights: type: '[Num]?' - default: '![Num]' + default: 'none' description: > The probability weights for each element in the list. These values do not need to add up to any particular number, they are relative @@ -666,7 +666,7 @@ List.where: return: type: 'Int' description: > - Returns the index of the first item where the predicate is true or `!Int` if no + Returns the index of the first item where the predicate is true or `none` if no item matches. args: list: |
