Skip to content

Commit 44e8cdc

Browse files
committed
Polishing
Issue: SPR-15659
1 parent 884fc40 commit 44e8cdc

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/docs/asciidoc/kotlin.adoc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -256,9 +256,10 @@ This `beans()` function can then be used to register beans on your application c
256256

257257
[source,kotlin]
258258
----
259-
val context = GenericApplicationContext()
260-
beans().invoke(context)
261-
context.refresh()
259+
val context = GenericApplicationContext().apply {
260+
beans().invoke(this)
261+
refresh()
262+
}
262263
----
263264

264265
[NOTE]

0 commit comments

Comments
 (0)