From 9b3bd0ffb0f123745e72fd8552f5435904861ac0 Mon Sep 17 00:00:00 2001 From: Shane Gannon Date: Sun, 17 Mar 2024 12:26:10 +0000 Subject: [PATCH 1/2] Update scala-for-java-programmers.md by adding a missing 'is' --- _overviews/tutorials/scala-for-java-programmers.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_overviews/tutorials/scala-for-java-programmers.md b/_overviews/tutorials/scala-for-java-programmers.md index e6678ef729..57a37b329b 100644 --- a/_overviews/tutorials/scala-for-java-programmers.md +++ b/_overviews/tutorials/scala-for-java-programmers.md @@ -384,7 +384,7 @@ Note that in order to print the string, we used the predefined method #### Anonymous functions In Scala, lambda expressions are known as anonymous functions. -They are useful when a function so short it is perhaps unneccesary +They are useful when a function is so short it is perhaps unneccesary to give them a name. Here is a revised version of the timer From a480d37bf46321e1826b8864e837ccbc55ce32d4 Mon Sep 17 00:00:00 2001 From: Shane Gannon Date: Sun, 17 Mar 2024 12:28:48 +0000 Subject: [PATCH 2/2] Update scala-for-java-programmers.md Let's use the plural instead --- _overviews/tutorials/scala-for-java-programmers.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_overviews/tutorials/scala-for-java-programmers.md b/_overviews/tutorials/scala-for-java-programmers.md index 57a37b329b..bc4a551d91 100644 --- a/_overviews/tutorials/scala-for-java-programmers.md +++ b/_overviews/tutorials/scala-for-java-programmers.md @@ -384,7 +384,7 @@ Note that in order to print the string, we used the predefined method #### Anonymous functions In Scala, lambda expressions are known as anonymous functions. -They are useful when a function is so short it is perhaps unneccesary +They are useful when functions are so short it is perhaps unneccesary to give them a name. Here is a revised version of the timer