aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2013-01-18 00:49:06 +0100
committerLoïc Hoguin <[email protected]>2013-01-18 00:49:06 +0100
commit7f2409a4bb3ac15696fedcd0d53cbf3b17ce8c85 (patch)
tree07bee4fddaef3aa69c0a2fe9e14d57c7f453fbf9
parentacd89f61161820a0acde354e3cbd8da1600d0aa4 (diff)
downloadcowboy-7f2409a4bb3ac15696fedcd0d53cbf3b17ce8c85.tar.gz
cowboy-7f2409a4bb3ac15696fedcd0d53cbf3b17ce8c85.tar.bz2
cowboy-7f2409a4bb3ac15696fedcd0d53cbf3b17ce8c85.zip
Do not use tabulations in the 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.
```