Skip to content

Commit 3d1200f

Browse files
committed
Fix link to block and procs section
1 parent 58a9e5b commit 3d1200f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/tutorials/basics/70_collections.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ arr = ["Crystal", "A", "language", "for", "humans", "and", "computers"]
282282
puts arr.any? &.empty? # => false
283283
```
284284

285-
`&` refers to the value passed to the block. You can read more about it [here](https://crystal-lang.org/reference/latest/syntax_and_semantics/blocks_and_procs.html#short-one-parameter-syntax).
285+
`&` refers to the value passed to the block. You can read more about it [here](../../syntax_and_semantics/blocks_and_procs.md#short-one-parameter-syntax).
286286

287287
**the long answer is: Yes! But ...**
288288
the method [Enumerable#any?](https://github.com/crystal-lang/crystal/blob/932f193ae/src/enumerable.cr#L81) is not implemented using `Enumerable#reduce` but with `each` so to "break the loop" once we find an element that satisfies the condition.

0 commit comments

Comments
 (0)