Skip to content

Commit 6c470c5

Browse files
Update example of #find method in introduction.md (#1804)
Removes the potential for conveying that Enumerable#find returns the index of the found element rather than the element itself. Forum discussion: https://forum.exercism.org/t/ambiguity-in-the-advanced-enumeration-learning-curriculum-boutique-inventory-learning-exercise/19966/8
1 parent 0326f8a commit 6c470c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exercises/concept/boutique-inventory/.docs/introduction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ fibonacci.select { |number| number.odd? } #=> [1, 1, 3, 5, 13]
1515
fibonacci.all? { |number| number < 20 } #=> true
1616
fibonacci.map { |number| number * 2 } #=> [0, 2, 2, 4, 6, 10, 16, 26]
1717
fibonacci.select { |number| number >= 5} #=> [5, 8, 13]
18-
fibonacci.find { |number| number >= 5} #=> 5
18+
fibonacci.find { |number| number >= 6} #=> 8
1919

2020
# Some methods work with or without a block
2121
fibonacci.sum #=> 33

0 commit comments

Comments
 (0)