From 89eccc68d19dd8ef0976433e12cc4685dd578fda Mon Sep 17 00:00:00 2001 From: David Griffiths Date: Mon, 31 Dec 2018 10:03:52 +0000 Subject: [PATCH] fix: Correct spelling of 'Fahrenheit' --- chapter11/Lambdas/src/Lambdas.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chapter11/Lambdas/src/Lambdas.kt b/chapter11/Lambdas/src/Lambdas.kt index 6805adc..6dbdc98 100644 --- a/chapter11/Lambdas/src/Lambdas.kt +++ b/chapter11/Lambdas/src/Lambdas.kt @@ -10,7 +10,7 @@ fun convert( } fun getConversionLambda(str: String): DoubleConversion { - if (str == "CentigradeToFarenheit") { + if (str == "CentigradeToFahrenheit") { return { it * 1.8 + 32 } } else if (str == "KgsToPounds") { return { it * 2.204623 }