From 607e6396161dada9a6d0624baf4295501d40e4ad Mon Sep 17 00:00:00 2001 From: Vojtech Letal Date: Thu, 18 Jun 2020 12:54:12 +0200 Subject: [PATCH] fix typos in yield.md --- _overviews/FAQ/yield.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/_overviews/FAQ/yield.md b/_overviews/FAQ/yield.md index 91f7950a7b..25f44a2c47 100644 --- a/_overviews/FAQ/yield.md +++ b/_overviews/FAQ/yield.md @@ -65,12 +65,12 @@ is translated into #### Example 5 -When pattern matching is used in for comprehensions on objects which do not +When pattern matching is used in for-comprehensions on objects which do not implement `filter` or `withFilter` compilation fails with the following error value withFilter is not a member of ... -That it because, for example, the following statement +That is because, for example, the following statement for((a, b) <- c) yield {...} @@ -79,10 +79,10 @@ is translated into c.withFiler{ case (a, b) => true case _ => false - }.map{case (a, b) => {...} + }.map{case (a, b) => {...}} where the `withFiler` ensures that the pattern in the subsequent function is -always satisfied +always satisfied. Clarity ----------------------------------