Skip to content

Commit

Permalink
fix: Correct spelling of 'Fahrenheit'
Browse files Browse the repository at this point in the history
  • Loading branch information
dogriffiths committed Dec 31, 2018
1 parent 9fcb1d6 commit 89eccc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chapter11/Lambdas/src/Lambdas.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down

0 comments on commit 89eccc6

Please sign in to comment.