From e9154ac51dff4550fec7dffe295aa1fa8a2631f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Quentin=20Sti=C3=A9venart?= Date: Tue, 2 Jan 2024 09:51:02 -0500 Subject: [PATCH] Fix typo in doc of Dream.router (#314) Dream.param takes the request as first argument. --- src/dream.mli | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dream.mli b/src/dream.mli index 783383fd..93d481c0 100644 --- a/src/dream.mli +++ b/src/dream.mli @@ -1368,7 +1368,7 @@ val router : route list -> handler Dream.run @@ Dream.router [ Dream.get "/echo/:word" @@ fun request -> - Dream.html (Dream.param "word" request); + Dream.html (Dream.param request "word"); ] ]}