aboutsummaryrefslogtreecommitdiffstats
path: root/guide
diff options
context:
space:
mode:
Diffstat (limited to 'guide')
-rw-r--r--guide/introduction.md2
-rw-r--r--guide/loop_handlers.md10
2 files changed, 6 insertions, 6 deletions
diff --git a/guide/introduction.md b/guide/introduction.md
index 0ac99e5..a8563fb 100644
--- a/guide/introduction.md
+++ b/guide/introduction.md
@@ -77,7 +77,7 @@ Dispatch = [
],
%% Name, NbAcceptors, TransOpts, ProtoOpts
cowboy:start_http(my_http_listener, 100,
- [{port, 8080}],
+ [{port, 8080}],
[{env, [{dispatch, Dispatch}]}]
).
```
diff --git a/guide/loop_handlers.md b/guide/loop_handlers.md
index 6d67c62..41f9e76 100644
--- a/guide/loop_handlers.md
+++ b/guide/loop_handlers.md
@@ -41,14 +41,14 @@ this message.
-export([terminate/2]).
init({tcp, http}, Req, Opts) ->
- {loop, Req, undefined_state, 60000, hibernate}.
+ {loop, Req, undefined_state, 60000, hibernate}.
info({reply, Body}, Req, State) ->
- {ok, Req2} = cowboy_req:reply(200, [], Body, Req),
- {ok, Req2, State};
+ {ok, Req2} = cowboy_req:reply(200, [], Body, Req),
+ {ok, Req2, State};
info(Message, Req, State) ->
- {loop, Req, State, hibernate}.
+ {loop, Req, State, hibernate}.
terminate(Req, State) ->
- ok.
+ ok.
```