summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthew Sackman <matthew@lshift.net>2010-04-09 15:39:30 +0100
committerMatthew Sackman <matthew@lshift.net>2010-04-09 15:39:30 +0100
commit469f762f90c3793f72c0dff104f1aee2c0c56e3f (patch)
tree5a4524dc91373827bceb267e340a6dd70c636136 /src
parentd28f156fc9d9071366d49df108bc257afb8411cf (diff)
downloadrabbitmq-server-git-469f762f90c3793f72c0dff104f1aee2c0c56e3f.tar.gz
Added type specs to version_compare
Diffstat (limited to 'src')
-rw-r--r--src/rabbit_misc.erl3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rabbit_misc.erl b/src/rabbit_misc.erl
index ab08819278..610f0d9c87 100644
--- a/src/rabbit_misc.erl
+++ b/src/rabbit_misc.erl
@@ -134,6 +134,9 @@
-spec(sort_field_table/1 :: (amqp_table()) -> amqp_table()).
-spec(pid_to_string/1 :: (pid()) -> string()).
-spec(string_to_pid/1 :: (string()) -> pid()).
+-spec(version_compare/2 :: (string(), string()) -> 'lt' | 'eq' | 'gt').
+-spec(version_compare/3 :: (string(), string(), ('lt' | 'lte' | 'eq' | 'gte' | 'gt')) ->
+ boolean()).
-spec(dict_cons/3 :: (any(), any(), dict()) -> dict()).
-endif.