Skip to content

Commit 112f994

Browse files
WRHerbertAlexanderPrendota
authored andcommitted
refactor: fix missing space typo in Smart Casts (Kotlin#61)
added missing space to 'acondition' resulting in 'a condition'
1 parent 03ed8d4 commit 112f994

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/06_productivity_boosters/04_Smart Casts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ fun main() {
4141
1. Declares a nullable variable.
4242
2. Smart-cast to non-nullable (thus allowing direct access to `isLeapYear`).
4343
3. Smart-cast inside a condition (this is possible because, like Java, Kotlin uses [short-circuiting](https://en.wikipedia.org/wiki/Short-circuit_evaluation)).
44-
4. Smart-cast inside acondition (also enabled by short-circuiting).
44+
4. Smart-cast inside a condition (also enabled by short-circuiting).
4545
5. Smart-cast to the subtype `LocalDate`.
4646

4747
This way, you can automatically use variables as desired in most cases without doing obvious casts manually.

0 commit comments

Comments
 (0)