From 7f2409a4bb3ac15696fedcd0d53cbf3b17ce8c85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Fri, 18 Jan 2013 00:49:06 +0100 Subject: Do not use tabulations in the guide --- guide/introduction.md | 2 +- guide/loop_handlers.md | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'guide') 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. ``` -- cgit v1.2.3