aboutsummaryrefslogtreecommitdiffstats
path: root/guide/routing.md
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2013-01-28 19:56:42 +0100
committerLoïc Hoguin <[email protected]>2013-01-28 19:56:42 +0100
commita5a69353f1e5de41337d31943f70030261ee45dc (patch)
tree0140a5a47ba3bc1285f791beca966fdbcc63732d /guide/routing.md
parenta357c49d1bdbc524a9cdf1f11b9aed66cac47f59 (diff)
downloadcowboy-a5a69353f1e5de41337d31943f70030261ee45dc.tar.gz
cowboy-a5a69353f1e5de41337d31943f70030261ee45dc.tar.bz2
cowboy-a5a69353f1e5de41337d31943f70030261ee45dc.zip
Add the 'int' constraint
Diffstat (limited to 'guide/routing.md')
-rw-r--r--guide/routing.md5
1 files changed, 3 insertions, 2 deletions
diff --git a/guide/routing.md b/guide/routing.md
index 2afb2f0..659b27d 100644
--- a/guide/routing.md
+++ b/guide/routing.md
@@ -196,8 +196,9 @@ Constraints
-----------
After the matching has completed, the resulting bindings can be tested
-against a set of constraints. The match will succeed only if they all
-succeed.
+against a set of constraints. Constraints are only tested when the
+binding is defined. They run in the order you defined them. The match
+will succeed only if they all succeed.
They are always given as a two or three elements tuple, where the first
element is the name of the binding, the second element is the constraint's