Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/topics/classes.md
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ A common use case for `init` blocks is data validation. For example, by calling
```kotlin
class Person(val age: Int) {
init {
require(age > 0, "age must be positive")
require(age > 0) { "age must be positive" }
}
}
```
Expand Down Expand Up @@ -593,4 +593,4 @@ fun main() {
If you declare a companion object inside your class,
you can access its members using only the class name as a qualifier.

For more information, see [Companion objects](object-declarations.md#companion-objects).
For more information, see [Companion objects](object-declarations.md#companion-objects).