diff options
author | mihaylov <mihaylov@epfl.ch> | 2006-09-24 13:44:57 +0000 |
---|---|---|
committer | mihaylov <mihaylov@epfl.ch> | 2006-09-24 13:44:57 +0000 |
commit | d58bf70442df9c65a1b246f03e706ed3d6ca0717 (patch) | |
tree | c75e27082645427389b407837ea91af78516f33f /src/library | |
parent | c12786087f1be29853616bbba94f6763781e3f07 (diff) | |
download | scala-d58bf70442df9c65a1b246f03e706ed3d6ca0717.tar.gz scala-d58bf70442df9c65a1b246f03e706ed3d6ca0717.tar.bz2 scala-d58bf70442df9c65a1b246f03e706ed3d6ca0717.zip |
Changed the scaladoc comment of foldLeft and fo...
Changed the scaladoc comment of foldLeft and foldRight according to bug
contribution #200
Diffstat (limited to 'src/library')
-rw-r--r-- | src/library/scala/List.scala | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/library/scala/List.scala b/src/library/scala/List.scala index e74677dae1..57f28a91be 100644 --- a/src/library/scala/List.scala +++ b/src/library/scala/List.scala @@ -875,10 +875,10 @@ sealed abstract class List[+a] extends Seq[a] with CaseClass { } /** Combines the elements of this list together using the binary - * operator <code>op</code>, from left to right, and starting with + * function <code>f</code>, from left to right, and starting with * the value <code>z</code>. * - * @return <code>op(... (op(op(z,a0),a1) ...), an)</code> if the list + * @return <code>f(... (f(f(z, a0), a1) ...), an)</code> if the list * is <code>[a0, a1, ..., an]</code>. */ override def foldLeft[b](z: b)(f: (b, a) => b): b = { @@ -892,10 +892,10 @@ sealed abstract class List[+a] extends Seq[a] with CaseClass { } /** Combines the elements of this list together using the binary - * operator <code>op</code>, from rigth to left, and starting with + * function <code>f</code>, from rigth to left, and starting with * the value <code>z</code>. * - * @return <code>a0 op (... op (an op z)...)</code> if the list + * @return <code>f(a0, f(a1, f(..., f(an, z)...)))</code> if the list * is <code>[a0, a1, ..., an]</code>. */ override def foldRight[b](z: b)(f: (a, b) => b): b = this match { |