diff options
author | Seth Tisue <seth@tisue.net> | 2015-08-19 22:11:04 -0400 |
---|---|---|
committer | Seth Tisue <seth@tisue.net> | 2015-08-19 22:11:04 -0400 |
commit | e6a40cb7f54710b8cb7436728a10ed189553ae40 (patch) | |
tree | fe985c8921e8b46d6508899ce946f5d3d3a4466c /src/library | |
parent | 38d854cc12ac40f9660282206163b0736988c8cc (diff) | |
parent | e9b47102ed2c49200a4bef48cfb5e21c37086e7b (diff) | |
download | scala-e6a40cb7f54710b8cb7436728a10ed189553ae40.tar.gz scala-e6a40cb7f54710b8cb7436728a10ed189553ae40.tar.bz2 scala-e6a40cb7f54710b8cb7436728a10ed189553ae40.zip |
Merge pull request #4697 from martijnhoekstra/patch-3
Fix documentation of Stream.filter introduced in 13f30c
Diffstat (limited to 'src/library')
-rw-r--r-- | src/library/scala/collection/immutable/Stream.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/library/scala/collection/immutable/Stream.scala b/src/library/scala/collection/immutable/Stream.scala index d8f0559706..a6c55f8828 100644 --- a/src/library/scala/collection/immutable/Stream.scala +++ b/src/library/scala/collection/immutable/Stream.scala @@ -508,8 +508,8 @@ self => * * @example {{{ * $naturalsEx - * naturalsFrom(1) 10 } filter { _ % 5 == 0 } take 10 mkString(", ") - * // produces + * naturalsFrom(1) filter { _ % 5 == 0 } take 10 mkString(", ") + * // produces "5, 10, 15, 20, 25, 30, 35, 40, 45, 50" * }}} */ override def filter(p: A => Boolean): Stream[A] = { |