0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-15 04:30:25 +00:00

Update getting_started.ezdoc

Make example code dialyzer approved.
This commit is contained in:
Graham Hay 2015-01-19 13:39:28 +00:00
parent 02b1b28178
commit a7ceb58ee8

View file

@ -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().