mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-15 04:30:25 +00:00
Use spaces in snippets in the guide
This commit is contained in:
parent
a231216b07
commit
31cabe0fb9
10 changed files with 104 additions and 104 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue