summaryrefslogtreecommitdiffstats
path: root/docs/en/cowboy/2.0/guide/constraints.asciidoc
diff options
context:
space:
mode:
Diffstat (limited to 'docs/en/cowboy/2.0/guide/constraints.asciidoc')
-rw-r--r--docs/en/cowboy/2.0/guide/constraints.asciidoc10
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/en/cowboy/2.0/guide/constraints.asciidoc b/docs/en/cowboy/2.0/guide/constraints.asciidoc
index 822962d2..7721831e 100644
--- a/docs/en/cowboy/2.0/guide/constraints.asciidoc
+++ b/docs/en/cowboy/2.0/guide/constraints.asciidoc
@@ -74,11 +74,11 @@ to an integer:
[source,erlang]
----
fun (Value0) when is_binary(Value0) ->
- try binary_to_integer(Value0) of
- Value -> {true, Value}
- catch _:_ ->
- false
- end.
+ try binary_to_integer(Value0) of
+ Value -> {true, Value}
+ catch _:_ ->
+ false
+ end.
----
Constraint functions should only crash because the programmer