Skip to content

Commit df2d0e8

Browse files
author
Remy
committed
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.
1 parent bcef8df commit df2d0e8

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
@@ -151,7 +151,7 @@ All operations on iterators are summarized below.
151151
| **Update:** | |
152152
| `it patch (i, jt, r)` | The iterator resulting from `it` by replacing `r` elements starting with `i` by the patch iterator `jt`. |
153153
| **Comparison:** | |
154-
| `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. |
154+
| `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. |
155155
| **Strings:** | |
156156
| `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. |
157157
| `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. |

0 commit comments

Comments
 (0)