diff --git a/src/reference/asciidoc/kotlin-dsl.adoc b/src/reference/asciidoc/kotlin-dsl.adoc index 12de6b96fd..d619d60725 100644 --- a/src/reference/asciidoc/kotlin-dsl.adoc +++ b/src/reference/asciidoc/kotlin-dsl.adoc @@ -49,7 +49,7 @@ This factory can be used in Kotlin as well: ---- @Bean fun flowFromSupplier() = - IntegrationFlows.from({ "bar" }) { e -> e.poller { p -> p.fixedDelay(10).maxMessagesPerPoll(1) } } + IntegrationFlows.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. -