diff --git a/docs/topics/object-declarations.md b/docs/topics/object-declarations.md index 7518eb705ed..41a53616c6e 100644 --- a/docs/topics/object-declarations.md +++ b/docs/topics/object-declarations.md @@ -26,8 +26,9 @@ fun main() { // object expressions extend Any, so `override` is required on `toString()` override fun toString() = "$hello $world" } -//sampleEnd + print(helloWorld) +//sampleEnd } ``` {kotlin-runnable="true"}