Skip to content

Commit

Permalink
Fix typo in doc of Dream.router (#314)
Browse files Browse the repository at this point in the history
Dream.param takes the request as first argument.
  • Loading branch information
acieroid authored Jan 2, 2024
1 parent e513b8a commit e9154ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dream.mli
Original file line number Diff line number Diff line change
Expand Up @@ -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");
]
]}
Expand Down

0 comments on commit e9154ac

Please sign in to comment.