diff --git a/src/reference/asciidoc/kotlin-dsl.adoc b/src/reference/asciidoc/kotlin-dsl.adoc index 7d69d1b689..f08881dbb5 100644 --- a/src/reference/asciidoc/kotlin-dsl.adoc +++ b/src/reference/asciidoc/kotlin-dsl.adoc @@ -49,7 +49,7 @@ This API can be used in Kotlin as well: ---- @Bean fun flowFromSupplier() = - IntegrationFlow.from({ "bar" }) { e -> e.poller { p -> p.fixedDelay(10).maxMessagesPerPoll(1) } } + IntegrationFlow.fromSupplier({ "bar" }) { e -> e.poller { p -> p.fixedDelay(10).maxMessagesPerPoll(1) } } .channel { c -> c.queue("fromSupplierQueue") } .get() ---- @@ -94,4 +94,3 @@ fun convertFlow() = ==== NOTE: The reified type can be a whole `Message<*>` if there need access to headers as well in the lambda of the operator. -