diff options
author | Graham Hay <[email protected]> | 2015-01-19 13:39:28 +0000 |
---|---|---|
committer | Graham Hay <[email protected]> | 2015-01-19 13:39:28 +0000 |
commit | a7ceb58ee8670484171197e84ed3273e3344ca4e (patch) | |
tree | 51d95cd893b60817b2e2e37f38d30cda38f58221 /doc/src | |
parent | 02b1b281785a815ff5b4c7bfc45053f0c786a18c (diff) | |
download | cowboy-a7ceb58ee8670484171197e84ed3273e3344ca4e.tar.gz cowboy-a7ceb58ee8670484171197e84ed3273e3344ca4e.tar.bz2 cowboy-a7ceb58ee8670484171197e84ed3273e3344ca4e.zip |
Update getting_started.ezdoc
Make example code dialyzer approved.
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/guide/getting_started.ezdoc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/src/guide/getting_started.ezdoc b/doc/src/guide/getting_started.ezdoc index a959b45..deb7bf2 100644 --- a/doc/src/guide/getting_started.ezdoc +++ b/doc/src/guide/getting_started.ezdoc @@ -121,7 +121,7 @@ start(_Type, _Args) -> Dispatch = cowboy_router:compile([ {'_', [{"/", hello_handler, []}]} ]), - cowboy:start_http(my_http_listener, 100, [{port, 8080}], + {ok, _} = cowboy:start_http(my_http_listener, 100, [{port, 8080}], [{env, [{dispatch, Dispatch}]}] ), hello_erlang_sup:start_link(). |