From ff78d386b17101f5ef831d2ca914c63d16979a94 Mon Sep 17 00:00:00 2001 From: Keiji Yoshida Date: Fri, 4 Jan 2019 21:33:26 +0900 Subject: [PATCH] Fix `error: value to is not a member of Boolean` Change `1.to(10) == 1 to 10` to `1.to(10) == (1 to 10)` because execution of the original code throws the following error: ``` :24: error: value to is not a member of Boolean 1.to(10) == 1 to 10 ``` --- src/main/scala/scalatutorial/sections/TermsAndTypes.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/scalatutorial/sections/TermsAndTypes.scala b/src/main/scala/scalatutorial/sections/TermsAndTypes.scala index 445812cb..6ae8d7d6 100644 --- a/src/main/scala/scalatutorial/sections/TermsAndTypes.scala +++ b/src/main/scala/scalatutorial/sections/TermsAndTypes.scala @@ -143,7 +143,7 @@ object TermsAndTypes extends ScalaTutorialSection { * The infix syntax can also be used with regular methods: * * {{{ - * 1.to(10) == 1 to 10 + * 1.to(10) == (1 to 10) * }}} * * Any method with a parameter can be used like an infix operator.