Skip to content

Commit 0cd4c9c

Browse files
Roberto-XYjvican
authored andcommitted
Fix Typo: optionHead -> headOption (#987)
optionHead -> headOption
1 parent 8e614f8 commit 0cd4c9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_overviews/collections/iterators.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ Every iterator can be converted to a buffered iterator by calling its `buffered`
187187
res11: Int = 1
188188
scala> bit.next()
189189
res12: Int = 2
190-
scala> bit.optionHead
190+
scala> bit.headOption
191191
res13: Option[Int] = Some(3)
192192

193193
Note that calling `head` on the buffered iterator `bit` does not advance it. Therefore, the subsequent call `bit.next()` returns the same value as `bit.head`.

0 commit comments

Comments
 (0)