From ca5fc6d57d382c374c195fce03c8a327a3496eb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jeronimo=20L=C3=B3pez?= Date: Tue, 14 Mar 2017 23:19:56 +0100 Subject: [PATCH] Fix foldRight code quote In foldRightFunctionTraversables explanation, foldRight is not quoted correctly and the rest of phrase is rendered as code. --- src/main/scala/stdlib/Traversables.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/stdlib/Traversables.scala b/src/main/scala/stdlib/Traversables.scala index b044eafc..cb7cf9b5 100644 --- a/src/main/scala/stdlib/Traversables.scala +++ b/src/main/scala/stdlib/Traversables.scala @@ -442,7 +442,7 @@ object Traversables extends FlatSpec with Matchers with org.scalaexercises.defin (((((0 - 5) - 4) - 3) - 2) - 1) should be(res4) } - /** `:\` or foldRight` will combine an operation starting with a seed and combining from the right. Fold right is defined as (list :\ seed), where seed is the initial value. Once the fold is established, you provide a function that takes two elements. The first is the next element of the list, and the second element is the running total of the operation. + /** `:\` or `foldRight` will combine an operation starting with a seed and combining from the right. Fold right is defined as (list :\ seed), where seed is the initial value. Once the fold is established, you provide a function that takes two elements. The first is the next element of the list, and the second element is the running total of the operation. * * Given a `Traversable (x1, x2, x3, x4)`, an initial value of `init`, an operation `op`, `foldRight` is defined as: `x1 op (x2 op (x3 op (x4 op init)))` */