From 729aa2517a2c459d24940d0c8c6249875481f666 Mon Sep 17 00:00:00 2001 From: Rachana Devi Date: Sat, 11 Jun 2022 08:01:08 +0530 Subject: [PATCH] Fix typo for kafka-streams documentation --- docs/src/main/asciidoc/kafka/kafka-streams.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/src/main/asciidoc/kafka/kafka-streams.adoc b/docs/src/main/asciidoc/kafka/kafka-streams.adoc index ed3030c0b..e1fbea74b 100644 --- a/docs/src/main/asciidoc/kafka/kafka-streams.adoc +++ b/docs/src/main/asciidoc/kafka/kafka-streams.adoc @@ -355,12 +355,12 @@ Even without the functional composition support in the binder, you can compose t ``` @Bean -pubic Funcion, KStream> composed() { +public Function, KStream> composed() { foo().andThen(bar()); } ``` -Then you can provide deefinitions of the form `spring.cloud.stream.function.definition=foo;bar;composed`. +Then you can provide definitions of the form `spring.cloud.stream.function.definition=foo;bar;composed`. With the functional composition support in the binder, you don't need to write this third function in which you are doing explicit function composition. You can simply do this instead: