diff --git a/README.md b/README.md index ce769ba0..d5950b92 100644 --- a/README.md +++ b/README.md @@ -79,7 +79,7 @@ Dispatch = [ {'_', [{'_', my_handler, []}]} ], %% Name, NbAcceptors, Transport, TransOpts, Protocol, ProtoOpts -cowboy:start_listener(http, 100, +cowboy:start_listener(my_http_listener, 100, cowboy_tcp_transport, [{port, 8080}], cowboy_http_protocol, [{dispatch, Dispatch}] ).