Skip to content

Commit

Permalink
Stregthen a spec
Browse files Browse the repository at this point in the history
  • Loading branch information
kostis committed Feb 19, 2013
1 parent f1bfbba commit cc2f6b5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/proper.erl
@@ -1,4 +1,4 @@
%%% Copyright 2010-2011 Manolis Papadakis <manopapad@gmail.com>,
%%% Copyright 2010-2013 Manolis Papadakis <manopapad@gmail.com>,
%%% Eirini Arvaniti <eirinibob@gmail.com>
%%% and Kostis Sagonas <kostis@cs.ntua.gr>
%%%
Expand All @@ -17,7 +17,7 @@
%%% You should have received a copy of the GNU General Public License
%%% along with PropEr. If not, see <http://www.gnu.org/licenses/>.

%%% @copyright 2010-2011 Manolis Papadakis, Eirini Arvaniti and Kostis Sagonas
%%% @copyright 2010-2013 Manolis Papadakis, Eirini Arvaniti and Kostis Sagonas
%%% @version {@version}
%%% @author Manolis Papadakis

Expand Down Expand Up @@ -657,13 +657,13 @@ global_state_erase() ->
ok.

%% @private
-spec spawn_link_migrate(fun(() -> _)) -> pid().
-spec spawn_link_migrate(fun(() -> 'ok')) -> pid().
spawn_link_migrate(ActualFun) ->
PDictStuff = get(),
Fun = fun() ->
lists:foreach(fun({K,V}) -> put(K,V) end, PDictStuff),
proper_arith:rand_reseed(),
ActualFun()
ok = ActualFun()
end,
spawn_link(Fun).

Expand Down

0 comments on commit cc2f6b5

Please sign in to comment.