From 8c3a81d967bddd44523ae2244fd9d89d49d60ec4 Mon Sep 17 00:00:00 2001 From: Rohan Talip Date: Sun, 2 Feb 2020 10:59:39 -0800 Subject: [PATCH] Updated the comment for the return type The previous inline code highlighting of `: Int` together was confusing: the sentence as a whole seemed to imply that the return type could be found _after_ the colon *and* the `Int`, i.e. the sentence could be read to imply that `: Int` was a separate syntactic construct from the return type, even though the return type `Int` was already there. --- _tour/basics.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_tour/basics.md b/_tour/basics.md index 331b026e29..9c99e46f17 100644 --- a/_tour/basics.md +++ b/_tour/basics.md @@ -145,7 +145,7 @@ println(add(1, 2)) // 3 ``` {% endscalafiddle %} -Notice how the return type is declared _after_ the parameter list and the `: Int`. +Notice how the return type `Int` is declared _after_ the parameter list and a `:`. A method can take multiple parameter lists: