From 6af94dffe54c115e98b2fe359749d5e586d12fcf Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Tue, 29 Nov 2022 13:52:26 +0100 Subject: [PATCH] Add "missing" callout for parity --- framework-docs/src/docs/asciidoc/web/webmvc-functional.adoc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/framework-docs/src/docs/asciidoc/web/webmvc-functional.adoc b/framework-docs/src/docs/asciidoc/web/webmvc-functional.adoc index 828be373ae..937cb19b97 100644 --- a/framework-docs/src/docs/asciidoc/web/webmvc-functional.adoc +++ b/framework-docs/src/docs/asciidoc/web/webmvc-functional.adoc @@ -40,7 +40,7 @@ as the following example shows: PersonRepository repository = ... PersonHandler handler = new PersonHandler(repository); - RouterFunction route = route() + RouterFunction route = route() // <1> .GET("/person/{id}", accept(APPLICATION_JSON), handler::getPerson) .GET("/person", accept(APPLICATION_JSON), handler::listPeople) .POST("/person", handler::createPerson) @@ -64,6 +64,7 @@ as the following example shows: } } ---- +<1> Create router using `route()`. [source,kotlin,indent=0,subs="verbatim,quotes",role="secondary"] .Kotlin