From d28bee0506e6172858811b7c276e30b6ccfb586f Mon Sep 17 00:00:00 2001 From: "A. Roberto Fischer" Date: Sat, 13 Jan 2018 03:35:13 +0100 Subject: [PATCH] Fix Typo optionHead -> headOption --- _overviews/collections/iterators.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_overviews/collections/iterators.md b/_overviews/collections/iterators.md index d5cce7da68..f139d8f733 100644 --- a/_overviews/collections/iterators.md +++ b/_overviews/collections/iterators.md @@ -187,7 +187,7 @@ Every iterator can be converted to a buffered iterator by calling its `buffered` res11: Int = 1 scala> bit.next() res12: Int = 2 - scala> bit.optionHead + scala> bit.headOption res13: Option[Int] = Some(3) 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`.