aboutsummaryrefslogtreecommitdiffstats
path: root/guide/embedded.md
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2012-11-12 19:27:16 +0100
committerLoïc Hoguin <[email protected]>2012-11-12 19:27:16 +0100
commit7ceb7889d54f38469889c78a3a7118e86d0dd861 (patch)
tree6e718bd5a5d88b03f52709c481f5baee01b8b623 /guide/embedded.md
parenteec2e40258becbd7fcafcbf6534890a51851f07d (diff)
downloadranch-7ceb7889d54f38469889c78a3a7118e86d0dd861.tar.gz
ranch-7ceb7889d54f38469889c78a3a7118e86d0dd861.tar.bz2
ranch-7ceb7889d54f38469889c78a3a7118e86d0dd861.zip
Fix Markdown in the guide
Diffstat (limited to 'guide/embedded.md')
-rw-r--r--guide/embedded.md14
1 files changed, 7 insertions, 7 deletions
diff --git a/guide/embedded.md b/guide/embedded.md
index 82dab75..6cac064 100644
--- a/guide/embedded.md
+++ b/guide/embedded.md
@@ -13,22 +13,22 @@ Embedding
---------
To embed Ranch in your application you can simply add the child specs
-to your supervision tree. This can all be done in the ```init/1``` function
+to your supervision tree. This can all be done in the `init/1` function
of one of your application supervisors.
Ranch requires at the minimum two kinds of child specs for embedding.
-First, you need to add ```ranch_sup``` to your supervision tree, only once,
+First, you need to add `ranch_sup` to your supervision tree, only once,
regardless of the number of listeners you will use. Then you need to
add the child specs for each listener.
Ranch has a convenience function for getting the listeners child specs
-called ```ranch:child_spec/6```, that works like ```ranch:start_listener/6```,
+called `ranch:child_spec/6`, that works like `ranch:start_listener/6`,
except that it doesn't start anything, it only returns child specs.
-As for ```ranch_sup```, the child spec is simple enough to not require a
+As for `ranch_sup`, the child spec is simple enough to not require a
convenience function.
-The following example adds both ```ranch_sup``` and one listener to another
+The following example adds both `ranch_sup` and one listener to another
application's supervision tree.
``` erlang
@@ -43,8 +43,8 @@ init([]) ->
```
Remember, you can add as many listener child specs as needed, but only
-one ```ranch_sup``` spec!
+one `ranch_sup` spec!
It is recommended that your architecture makes sure that all listeners
-are restarted if ```ranch_sup``` fails. See the Ranch internals chapter for
+are restarted if `ranch_sup` fails. See the Ranch internals chapter for
more details on how Ranch does it.