diff --git a/docs/src/main/asciidoc/kafka/kafka-streams.adoc b/docs/src/main/asciidoc/kafka/kafka-streams.adoc index 138badbe8..30af96d85 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: