From 3766a5929e2d636a9e01aa8dffc1186d66fbf0e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jacek=20Sch=C3=A6?= <31179812+jacekschae@users.noreply.github.com> Date: Sat, 9 May 2020 18:11:50 +0200 Subject: [PATCH] Fix reference -- from r to router --- doc/coercion/coercion.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/coercion/coercion.md b/doc/coercion/coercion.md index eb7ca035..adb69ac8 100644 --- a/doc/coercion/coercion.md +++ b/doc/coercion/coercion.md @@ -15,7 +15,7 @@ By default, all wildcard and catch-all parameters are parsed into strings: Match with the parsed `:path-params` as strings: ```clj -(r/match-by-path r "/metosin/users/123") +(r/match-by-path router "/metosin/users/123") ; #Match{:template "/:company/users/:user-id", ; :data {:name :user/user-view}, ; :result nil, @@ -63,7 +63,7 @@ Example with Schema path-parameters: A Match: ```clj -(r/match-by-path r "/metosin/users/123") +(r/match-by-path router "/metosin/users/123") ; #Match{:template "/:company/users/:user-id", ; :data {:name :user/user-view, ; :coercion <<:schema>> @@ -103,7 +103,7 @@ There is a helper function `reitit.coercion/compile-request-coercers` just for t Routing again: ```clj -(r/match-by-path r "/metosin/users/123") +(r/match-by-path router "/metosin/users/123") ; #Match{:template "/:company/users/:user-id", ; :data {:name :user/user-view, ; :coercion <<:schema>>