Browse Source

Do not use tabulations in the guide

Loïc Hoguin 12 years ago
parent
commit
7f2409a4bb
2 changed files with 6 additions and 6 deletions
  1. 1 1
      guide/introduction.md
  2. 5 5
      guide/loop_handlers.md

+ 1 - 1
guide/introduction.md

@@ -77,7 +77,7 @@ Dispatch = [
 ],
 ],
 %% Name, NbAcceptors, TransOpts, ProtoOpts
 %% Name, NbAcceptors, TransOpts, ProtoOpts
 cowboy:start_http(my_http_listener, 100,
 cowboy:start_http(my_http_listener, 100,
-	[{port, 8080}],
+    [{port, 8080}],
     [{env, [{dispatch, Dispatch}]}]
     [{env, [{dispatch, Dispatch}]}]
 ).
 ).
 ```
 ```

+ 5 - 5
guide/loop_handlers.md

@@ -41,14 +41,14 @@ this message.
 -export([terminate/2]).
 -export([terminate/2]).
 
 
 init({tcp, http}, Req, Opts) ->
 init({tcp, http}, Req, Opts) ->
-	{loop, Req, undefined_state, 60000, hibernate}.
+    {loop, Req, undefined_state, 60000, hibernate}.
 
 
 info({reply, Body}, Req, State) ->
 info({reply, Body}, Req, State) ->
-	{ok, Req2} = cowboy_req:reply(200, [], Body, Req),
+    {ok, Req2} = cowboy_req:reply(200, [], Body, Req),
-	{ok, Req2, State};
+    {ok, Req2, State};
 info(Message, Req, State) ->
 info(Message, Req, State) ->
-	{loop, Req, State, hibernate}.
+    {loop, Req, State, hibernate}.
 
 
 terminate(Req, State) ->
 terminate(Req, State) ->
-	ok.
+    ok.
 ```
 ```