Skip to content

Commit

Permalink
fix code sample in readme
Browse files Browse the repository at this point in the history
`dispatch` is not part of the DSL module, but is instead available in
the parent Dispatch module.
  • Loading branch information
anuragsoni committed Feb 27, 2022
1 parent 6ca30b4 commit 6ed7ca8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ let handler request =
; "/hello/:who/", hello_handler
]
in
match DSL.dispatch routes request.path with
match dispatch routes request.path with
| Some handler -> handler request
| None -> "Not found!"
;;
Expand Down

0 comments on commit 6ed7ca8

Please sign in to comment.