From 58267689f09cb6a4526da760f48d5fb7ccc59b2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Mon, 27 Jun 2011 23:36:17 +0200 Subject: Add the remaining missing specs Found thanks to warn_missing_spec and added with the help of typer. Eunit functions do not have specs yet however. --- src/cowboy_http_handler.erl | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/cowboy_http_handler.erl') diff --git a/src/cowboy_http_handler.erl b/src/cowboy_http_handler.erl index 8e36d0c..67f07bc 100644 --- a/src/cowboy_http_handler.erl +++ b/src/cowboy_http_handler.erl @@ -15,6 +15,8 @@ -module(cowboy_http_handler). -export([behaviour_info/1]). +-spec behaviour_info(_) + -> undefined | [{handle, 2} | {init, 3} | {terminate, 2}, ...]. behaviour_info(callbacks) -> [{init, 3}, {handle, 2}, {terminate, 2}]; behaviour_info(_Other) -> -- cgit v1.2.3