Skip to content

Commit

Permalink
docs: Remove unnecessary @@ Dream.not_found from code sample (#213)
Browse files Browse the repository at this point in the history
It doesn't seem to be necessary anymore, since `Dream.router` returns a handler, not a middleware.
  • Loading branch information
askvortsov1 authored Mar 24, 2022
1 parent 3098d0a commit 2386083
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/web/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@ <h6>Tidy Web framework for OCaml and ReasonML</h6>
@@ <span class="hljs-type">Dream</span>.router <span class="hljs-string">[</span>
<span class="hljs-type">Dream</span>.get <span class="hljs-string">"/"</span> (<span class="keyword">fun</span> _ ->
<span class="hljs-type">Dream</span>.html (hello <span class="hljs-string">"world"</span>));
<span class="hljs-string">]</span>
@@ <span class="hljs-type">Dream</span>.not_found</pre>
<span class="hljs-string">]</span></pre>

<!-- Send TLS link to HTTPS example. -->

Expand Down

0 comments on commit 2386083

Please sign in to comment.