From 04bb5cd2f01db6afc026721e7f28368df6f9b1eb Mon Sep 17 00:00:00 2001 From: Tommi Reiman Date: Wed, 25 Jul 2018 10:57:37 +0300 Subject: [PATCH] fix example --- doc/advanced/composing_routers.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/advanced/composing_routers.md b/doc/advanced/composing_routers.md index 32f5e85a..900ccf71 100644 --- a/doc/advanced/composing_routers.md +++ b/doc/advanced/composing_routers.md @@ -293,7 +293,7 @@ Here's a quick benchmark on the recursive matches. | `/gin/napue` | 40ns | static | `/ciders/weston` | 440ns | catch-all | `/beers/saison` | 600ns | catch-all + static -| `/other/drink` | 12000ns | catch-all + dynamic +| `/dynamic/duo` | 12000ns | catch-all + dynamic In this example, we could have wrapped the top-level router in an `atom` and add the beer-routes directly to it, making them order of magnitude faster.