diff --git a/guide/introduction.md b/guide/introduction.md index 0ac2e071..d632950f 100644 --- a/guide/introduction.md +++ b/guide/introduction.md @@ -86,10 +86,10 @@ The dispatch list is explained in greater details in the Routing section of the guide. ``` erlang -Dispatch = [ +Dispatch = cowboy_router:compile([ %% {URIHost, list({URIPath, Handler, Opts})} {'_', [{'_', my_handler, []}]} -], +]), %% Name, NbAcceptors, TransOpts, ProtoOpts cowboy:start_http(my_http_listener, 100, [{port, 8080}],