Browse Source

Improve the listener name in the README

Loïc Hoguin 13 years ago
parent
commit
7482c0de75
1 changed files with 1 additions and 1 deletions
  1. 1 1
      README.md

+ 1 - 1
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}]
 ).