From fd53d15402e98a28cf8c4ee577b0d56643a49478 Mon Sep 17 00:00:00 2001 From: Xinhe Wang Date: Wed, 20 Nov 2024 21:09:17 +0000 Subject: [PATCH] fix: wrong period position inside inline code --- docs/topics/tour/kotlin-tour-control-flow.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/topics/tour/kotlin-tour-control-flow.md b/docs/topics/tour/kotlin-tour-control-flow.md index 1ba13dd3ce4..6362714bfe2 100644 --- a/docs/topics/tour/kotlin-tour-control-flow.md +++ b/docs/topics/tour/kotlin-tour-control-flow.md @@ -271,7 +271,7 @@ The most common way to create a range in Kotlin is to use the `..` operator. For To declare a range that doesn't include the end value, use the `..<` operator. For example, `1..<4` is equivalent to `1, 2, 3`. -To declare a range in reverse order, use `downTo.` For example, `4 downTo 1` is equivalent to `4, 3, 2, 1`. +To declare a range in reverse order, use `downTo`. For example, `4 downTo 1` is equivalent to `4, 3, 2, 1`. To declare a range that increments in a step that isn't 1, use `step` and your desired increment value. For example, `1..5 step 2` is equivalent to `1, 3, 5`.