From 464a579370df50782a59e8a00b75768609dbbf9c Mon Sep 17 00:00:00 2001 From: clparadigma <46780445+clparadigma@users.noreply.github.com> Date: Fri, 18 Jan 2019 14:28:34 +0100 Subject: [PATCH] Double plus sign IMHO it might lead to confusions --- src/main/scala/scalatutorial/sections/TermsAndTypes.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/scala/scalatutorial/sections/TermsAndTypes.scala b/src/main/scala/scalatutorial/sections/TermsAndTypes.scala index 445812cb..a336b928 100644 --- a/src/main/scala/scalatutorial/sections/TermsAndTypes.scala +++ b/src/main/scala/scalatutorial/sections/TermsAndTypes.scala @@ -67,7 +67,7 @@ object TermsAndTypes extends ScalaTutorialSection { * - What is the result of the concatenation of the texts “Hello, ” and “Scala!”? * * {{{ - * "Hello, " ++ "Scala!" + * "Hello, " + "Scala!" * }}} * * = Evaluation = @@ -93,7 +93,7 @@ object TermsAndTypes extends ScalaTutorialSection { */ def evaluation(res0: Int, res1: String): Unit = { 1 + 2 shouldBe res0 - "Hello, " ++ "Scala!" shouldBe res1 + "Hello, " + "Scala!" shouldBe res1 } /**