Skip to content

Commit 2a27e6a

Browse files
committed
Document mistake - filter to use fix #3712
1 parent 6baf438 commit 2a27e6a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/asciidoc/routing.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ interface Filter {
467467
----
468468
{
469469
/** Kotlin uses implicit variables: `ctx` and `next` */
470-
filter {
470+
use {
471471
val start = System.currentTimeMillis() // <1>
472472
473473
val response = next.apply(ctx) // <2>
@@ -1014,14 +1014,14 @@ A `scoped filter` looks like:
10141014
----
10151015
{
10161016
// Increment +1
1017-
filter {
1017+
use {
10181018
val n = next.apply(ctx) as Int
10191019
return 1 + n
10201020
}
10211021
10221022
routes { // <1>
10231023
// Multiply by 2
1024-
filter {
1024+
use {
10251025
val n = next.apply(ctx) as Int
10261026
2 * n
10271027
}

0 commit comments

Comments
 (0)