From 0d322f1e366a2eb50422822ac10f69ae036b9ef1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pa=C5=ADlo=20Ebermann?= Date: Sat, 19 Jan 2019 18:57:38 +0100 Subject: [PATCH] type comes before value in val declarations See https://www.scala-lang.org/files/archive/spec/2.12/04-basic-declarations-and-definitions.html#value-declarations-and-definitions --- _tour/tuples.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_tour/tuples.md b/_tour/tuples.md index e945311a0e..d4b030ebc6 100644 --- a/_tour/tuples.md +++ b/_tour/tuples.md @@ -22,7 +22,7 @@ Tuples come in handy when we have to return multiple values from a function. A tuple can be created as: ```tut -val ingredient = ("Sugar" , 25):Tuple2[String, Int] +val ingredient : Tuple2[String, Int] = ("Sugar" , 25) ``` This creates a tuple containing a String element and an Int element.