aboutsummaryrefslogtreecommitdiffstats
path: root/guide
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2013-03-01 14:03:21 +0100
committerLoïc Hoguin <[email protected]>2013-03-01 14:03:21 +0100
commitb448939282b282d09a6618e1ffcd5efcef2ff4e1 (patch)
treea33c523c8b3937c30c859818b01949aeb4083a64 /guide
parentdee7a8d3e1ed528019ba1df3651223b7707a6442 (diff)
downloadcowboy-b448939282b282d09a6618e1ffcd5efcef2ff4e1.tar.gz
cowboy-b448939282b282d09a6618e1ffcd5efcef2ff4e1.tar.bz2
cowboy-b448939282b282d09a6618e1ffcd5efcef2ff4e1.zip
Fix an error in the guide introduction
Reported by Joe Armstrong.
Diffstat (limited to 'guide')
-rw-r--r--guide/introduction.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/guide/introduction.md b/guide/introduction.md
index 0ac2e07..d632950 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}],