From df2d0e8f2d70eeacfc50ef473369c1466d47c744 Mon Sep 17 00:00:00 2001 From: Remy Date: Wed, 22 Feb 2017 23:02:22 +0100 Subject: [PATCH] Correct description note of Iterator sameElements Align the note in the method description with the corresponding note in the API documentation see http://www.scala-lang.org/api/2.11.8/index.html#scala.collection.Iterator@sameElements(that:Iterator[_]):Boolean. --- 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 c59ff07c48..f8833c60ce 100644 --- a/overviews/collections/iterators.md +++ b/overviews/collections/iterators.md @@ -151,7 +151,7 @@ All operations on iterators are summarized below. | **Update:** | | | `it patch (i, jt, r)` | The iterator resulting from `it` by replacing `r` elements starting with `i` by the patch iterator `jt`. | | **Comparison:** | | -| `it sameElements jt` | A test whether iterators it and `jt` return the same elements in the same order. Note: At least one of `it` and `jt` will be at its end after this operation. | +| `it sameElements jt` | A test whether iterators it and `jt` return the same elements in the same order. Note: Using the iterators after this operation is undefined and subject to change. | | **Strings:** | | | `it addString (b, start, sep, end)`| Adds a string to `StringBuilder` `b` which shows all elements returned by `it` between separators `sep` enclosed in strings `start` and `end`. `start`, `sep`, `end` are all optional. | | `it mkString (start, sep, end)` | Converts the collection to a string which shows all elements returned by `it` between separators `sep` enclosed in strings `start` and `end`. `start`, `sep`, `end` are all optional. |