0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 12:20:24 +00:00

Fix the type spec for path_tokens, a list of *non empty* strings.

This commit is contained in:
Loïc Hoguin 2011-03-22 12:26:07 +01:00
parent 06ff8607ed
commit d4c071c2d0

View file

@ -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(),