0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-15 20:50:24 +00:00

Use spaces in snippets in the guide

This commit is contained in:
Loïc Hoguin 2016-09-14 18:51:11 +02:00
parent a231216b07
commit 31cabe0fb9
10 changed files with 104 additions and 104 deletions

View file

@ -65,7 +65,7 @@ following snippet switches to a Websocket handler:
[source,erlang]
----
init(Req, State) ->
{cowboy_websocket, Req, State}.
{cowboy_websocket, Req, State}.
----
You can also switch to your own custom handler type:
@ -73,7 +73,7 @@ You can also switch to your own custom handler type:
[source,erlang]
----
init(Req, State) ->
{my_handler_type, Req, State}.
{my_handler_type, Req, State}.
----
How to implement a custom handler type is described in the