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:
parent
02b1b28178
commit
a7ceb58ee8
1 changed files with 1 additions and 1 deletions
|
@ -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().
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue