Skip to content

Commit 65f3912

Browse files
committed
Updates any -> expect_any in documentation examples
1 parent 10acc24 commit 65f3912

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

lib/aiken/collection/list.ak

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -270,10 +270,10 @@ pub fn length(self: List<a>) -> Int {
270270
/// > An empty list NEVER satisfies the predicate.
271271
///
272272
/// ```aiken
273-
/// list.any([], fn(n) { n > 2 }) → 💥
274-
/// list.any([1, 2, 3], fn(n) { n > 0 }) == True
275-
/// list.any([1, 2, 3], fn(n) { n == 2 }) == True
276-
/// list.any([1, 2, 3], fn(n) { n < 0 }) → 💥
273+
/// list.expect_any([], fn(n) { n > 2 }) → 💥
274+
/// list.expect_any([1, 2, 3], fn(n) { n > 0 }) == True
275+
/// list.expect_any([1, 2, 3], fn(n) { n == 2 }) == True
276+
/// list.expect_any([1, 2, 3], fn(n) { n < 0 }) → 💥
277277
/// ```
278278
pub fn expect_any(self: List<a>, predicate: fn(a) -> Bool) -> Void {
279279
if predicate(builtin.head_list(self)) {

0 commit comments

Comments
 (0)