From 20c34833bbc105675d014c8a0a4d2b17fc787c26 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 21 Apr 2025 14:58:28 -0400 Subject: Fix old syntax in docs --- api/lists.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'api/lists.yaml') 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: -- cgit v1.2.3