diff options
author | Loïc Hoguin <[email protected]> | 2016-09-14 18:52:59 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2016-09-14 18:52:59 +0200 |
commit | 348cfe494318d0c12072fd75ff451c3b40168965 (patch) | |
tree | dc0186d61b759b248a774cd364d8cb4e073a0c41 /docs/en/cowboy/2.0/guide/constraints | |
parent | a0db20721bee71e7c0558a83d94ac0c8927b3939 (diff) | |
download | ninenines.eu-348cfe494318d0c12072fd75ff451c3b40168965.tar.gz ninenines.eu-348cfe494318d0c12072fd75ff451c3b40168965.tar.bz2 ninenines.eu-348cfe494318d0c12072fd75ff451c3b40168965.zip |
Update documentation
Diffstat (limited to 'docs/en/cowboy/2.0/guide/constraints')
-rw-r--r-- | docs/en/cowboy/2.0/guide/constraints/index.html | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/en/cowboy/2.0/guide/constraints/index.html b/docs/en/cowboy/2.0/guide/constraints/index.html index 4640976f..433c02da 100644 --- a/docs/en/cowboy/2.0/guide/constraints/index.html +++ b/docs/en/cowboy/2.0/guide/constraints/index.html @@ -160,11 +160,11 @@ by Lorenzo Bettini http://www.lorenzobettini.it
http://www.gnu.org/software/src-highlite -->
<pre><tt><span style="font-weight: bold"><span style="color: #0000FF">fun</span></span> (<span style="color: #009900">Value0</span>) <span style="font-weight: bold"><span style="color: #0000FF">when</span></span> <span style="font-weight: bold"><span style="color: #000080">is_binary</span></span>(<span style="color: #009900">Value0</span>) <span style="color: #990000">-></span>
- <span style="font-weight: bold"><span style="color: #0000FF">try</span></span> <span style="font-weight: bold"><span style="color: #000000">binary_to_integer</span></span>(<span style="color: #009900">Value0</span>) <span style="font-weight: bold"><span style="color: #0000FF">of</span></span>
- <span style="color: #009900">Value</span> <span style="color: #990000">-></span> {<span style="color: #000080">true</span>, <span style="color: #009900">Value</span>}
- <span style="font-weight: bold"><span style="color: #0000FF">catch</span></span> <span style="color: #990000">_:_</span> <span style="color: #990000">-></span>
- <span style="color: #000080">false</span>
- <span style="font-weight: bold"><span style="color: #0000FF">end</span></span><span style="color: #990000">.</span></tt></pre></div></div>
+ <span style="font-weight: bold"><span style="color: #0000FF">try</span></span> <span style="font-weight: bold"><span style="color: #000000">binary_to_integer</span></span>(<span style="color: #009900">Value0</span>) <span style="font-weight: bold"><span style="color: #0000FF">of</span></span>
+ <span style="color: #009900">Value</span> <span style="color: #990000">-></span> {<span style="color: #000080">true</span>, <span style="color: #009900">Value</span>}
+ <span style="font-weight: bold"><span style="color: #0000FF">catch</span></span> <span style="color: #990000">_:_</span> <span style="color: #990000">-></span>
+ <span style="color: #000080">false</span>
+ <span style="font-weight: bold"><span style="color: #0000FF">end</span></span><span style="color: #990000">.</span></tt></pre></div></div>
<div class="paragraph"><p>Constraint functions should only crash because the programmer
made an error when chaining constraints incorrectly (for example
if the constraints were <code>[int, int]</code>, and not because of input.
|