aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2011-03-22 12:26:07 +0100
committerLoïc Hoguin <[email protected]>2011-03-22 12:26:07 +0100
commitd4c071c2d0b4e5fbd6277eaf48f9ad03c1e5d9df (patch)
treedb7c2b8c640520059eb7441a0383b74bbd3a2654 /include
parent06ff8607edca1343ab2480dc2dc9890d258b6dfd (diff)
downloadcowboy-d4c071c2d0b4e5fbd6277eaf48f9ad03c1e5d9df.tar.gz
cowboy-d4c071c2d0b4e5fbd6277eaf48f9ad03c1e5d9df.tar.bz2
cowboy-d4c071c2d0b4e5fbd6277eaf48f9ad03c1e5d9df.zip
Fix the type spec for path_tokens, a list of *non empty* strings.
Diffstat (limited to 'include')
-rw-r--r--include/types.hrl2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/types.hrl b/include/types.hrl
index 7fe9f0a..bdd4c5f 100644
--- a/include/types.hrl
+++ b/include/types.hrl
@@ -25,7 +25,7 @@
-type port_number() :: 0..65535.
-type bindings() :: list({Key::atom(), Value::string()}).
--type path_tokens() :: list(string()).
+-type path_tokens() :: list(nonempty_string()).
-type match() :: '_' | '*' | list(string() | '_' | atom()).
-type dispatch_rules() :: {Host::match(), list({Path::match(),