diff --git a/src/docs/asciidoc/kotlin.adoc b/src/docs/asciidoc/kotlin.adoc index 19f6d823c8..b56e376c20 100644 --- a/src/docs/asciidoc/kotlin.adoc +++ b/src/docs/asciidoc/kotlin.adoc @@ -220,7 +220,8 @@ fun beans() = beans { } ---- -In this example, `ref()` is a shortcut for `applicationContext.getBean(Routes::class.java)`. +In this example, `bean()` is using autowiring by constructor and `ref()` +is a shortcut for `applicationContext.getBean(Routes::class.java)`. This `beans()` function can then be used to register beans on the application context.