Skip to content

Commit

Permalink
Merge pull request #36 from cstuncsik/traversable-foldright
Browse files Browse the repository at this point in the history
Traversable foldRight verbose example is missing
  • Loading branch information
raulraja committed Jun 29, 2016
2 parents 7d17e8e + b615a0e commit 17500b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/stdlib/Traversables.scala
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ object Traversables extends FlatSpec with Matchers with exercise.Section {
}
result should be(res0)

val result2 = (list :\ 0) {
val result2 = list.foldRight(0) {
(`next element`, `running total`) `next element` - `running total`
}
result2 should be(res1)
Expand Down

0 comments on commit 17500b9

Please sign in to comment.