From 1c239036d181f2a8aaf5f97d94bea5a19716c826 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Alcarraz?= Date: Fri, 11 Oct 2024 17:55:29 -0500 Subject: [PATCH] chore: update first function exercise in tour The exercise has a `// Write your code here`in the function body, but the function header needs to be modified too. Either: - the correct parameter and return type should be added to the function header. - the function should be removed entirely and just put the `//Write your code here` block. - the instruction should be `// modify the next function to meet the requirements` This suggestion goes with the second one. --- docs/topics/tour/kotlin-tour-functions.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/topics/tour/kotlin-tour-functions.md b/docs/topics/tour/kotlin-tour-functions.md index ef39fa4632f..030385da064 100644 --- a/docs/topics/tour/kotlin-tour-functions.md +++ b/docs/topics/tour/kotlin-tour-functions.md @@ -227,9 +227,8 @@ area of that circle. ```kotlin import kotlin.math.PI -fun circleArea() { - // Write your code here -} +// Write your code here + fun main() { println(circleArea(2)) }