Browse Source

Merge branch 'patch-1' of https://github.com/grahamrhay/cowboy

Loïc Hoguin 10 years ago
parent
commit
881316e6a1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      doc/src/guide/getting_started.ezdoc

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