From 29d13434d90dd64faa12db5e5b9de500c2ad2be2 Mon Sep 17 00:00:00 2001 From: qbahers Date: Tue, 5 Dec 2017 11:08:24 +0100 Subject: [PATCH] Fix typo in by-name-parameters.md Replace `have the the advantage that` with `have the advantage that`. --- _tour/by-name-parameters.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_tour/by-name-parameters.md b/_tour/by-name-parameters.md index 65bf811199..b9648a21f4 100644 --- a/_tour/by-name-parameters.md +++ b/_tour/by-name-parameters.md @@ -17,7 +17,7 @@ _By-name parameters_ are only evaluated when used. They are in contrast to _by-v ```tut def calculate(input: => Int) = input * 37 ``` -By-name parameters have the the advantage that they are not evaluated if they aren't used in the function body. On the other hand, by-value parameters have the advantage that they are evaluated only once. +By-name parameters have the advantage that they are not evaluated if they aren't used in the function body. On the other hand, by-value parameters have the advantage that they are evaluated only once. Here's an example of how we could implement a while loop: