summaryrefslogtreecommitdiff
path: root/src/library/scala/collection/immutable/Stream.scala
diff options
context:
space:
mode:
authorAleksandar Pokopec <aleksandar.prokopec@epfl.ch>2010-04-08 16:09:24 +0000
committerAleksandar Pokopec <aleksandar.prokopec@epfl.ch>2010-04-08 16:09:24 +0000
commit0e437ba3095d732430a8b8cbd468aa74e5b307fe (patch)
treeeb275f6cecdff1708be43e52d344237026f4f620 /src/library/scala/collection/immutable/Stream.scala
parent24bc8b350a9a54b5286fa5fbdf308dd34c2a736e (diff)
downloadscala-0e437ba3095d732430a8b8cbd468aa74e5b307fe.tar.gz
scala-0e437ba3095d732430a8b8cbd468aa74e5b307fe.tar.bz2
scala-0e437ba3095d732430a8b8cbd468aa74e5b307fe.zip
More cleanups in docs. Review by odersky.
Diffstat (limited to 'src/library/scala/collection/immutable/Stream.scala')
-rw-r--r--src/library/scala/collection/immutable/Stream.scala8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/library/scala/collection/immutable/Stream.scala b/src/library/scala/collection/immutable/Stream.scala
index dc1f2b6536..7f0b21050a 100644
--- a/src/library/scala/collection/immutable/Stream.scala
+++ b/src/library/scala/collection/immutable/Stream.scala
@@ -72,17 +72,17 @@ self =>
def append[B >: A](rest: => Traversable[B]): Stream[B] =
if (isEmpty) rest.toStream else new Stream.Cons(head, tail append rest)
- /** Force evaluation of the whole stream and return it */
+ /** Forces evaluation of the whole stream and returns it. */
def force: Stream[A] = {
var these = this
while (!these.isEmpty) these = these.tail
this
}
- /** Prints elements of this stream one by one, separated by commas */
+ /** Prints elements of this stream one by one, separated by commas. */
def print() { print(", ") }
- /** Prints elements of this stream one by one, separated by <code>sep</code>
+ /** Prints elements of this stream one by one, separated by <code>sep</code>.
* @param sep The separator string printed between consecutive elements.
*/
def print(sep: String) {
@@ -113,7 +113,7 @@ self =>
}
/** Create a new stream which contains all elements of this stream
- * followed by all elements of Traversable `that'
+ * followed by all elements of Traversable `that`.
* @note It's subtle why this works. We know that if the target type
* of the Builder That is either a Stream, or one of its supertypes, or undefined,
* then StreamBuilder will be chosen for the implicit.