aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorKostis Sagonas <[email protected]>2011-03-05 19:57:49 +0200
committerNiclas Axelsson <[email protected]>2011-03-11 12:06:16 +0100
commitba13517abde33dc83d12644eb30b2dd4f9abf6e9 (patch)
treedff1376d1cfc4d076e4ff38649c3cfbfd4dfb38e /lib
parent247aaa6f20a86b8074fee7bc8ebd84cdb15ad87f (diff)
downloadotp-ba13517abde33dc83d12644eb30b2dd4f9abf6e9.tar.gz
otp-ba13517abde33dc83d12644eb30b2dd4f9abf6e9.tar.bz2
otp-ba13517abde33dc83d12644eb30b2dd4f9abf6e9.zip
Add specs for functions that do not return
Diffstat (limited to 'lib')
-rw-r--r--lib/kernel/src/error_handler.erl6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/kernel/src/error_handler.erl b/lib/kernel/src/error_handler.erl
index 885eeb2b0f..6f69f4ccb9 100644
--- a/lib/kernel/src/error_handler.erl
+++ b/lib/kernel/src/error_handler.erl
@@ -1,7 +1,7 @@
%%
%% %CopyrightBegin%
%%
-%% Copyright Ericsson AB 1996-2010. All Rights Reserved.
+%% Copyright Ericsson AB 1996-2011. All Rights Reserved.
%%
%% The contents of this file are subject to the Erlang Public License,
%% Version 1.1, (the "License"); you may not use this file except in
@@ -80,9 +80,13 @@ int() -> int.
%%
%% Crash providing a beautiful stack backtrace.
%%
+-spec crash(atom(), [term()]) -> no_return().
+
crash(Fun, Args) ->
crash({Fun,Args}).
+-spec crash(atom(), atom(), arity()) -> no_return().
+
crash(M, F, A) ->
crash({M,F,A}).