Skip to content

Commit

Permalink
option-for-result: Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
seliopou committed Apr 26, 2020
1 parent 01d106d commit 31962ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ let handler request =
; "/hello/:who/", hello_handler
] in
match DSL.dispatch table request.path with
| Result.Ok handler -> handler request
| Result.Error _ -> "Not found!"
| Some handler -> handler request
| None -> "Not found!"
;;
let _ =
Expand Down

0 comments on commit 31962ab

Please sign in to comment.