LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File 0327-erts-Improve-a-contract.patch of Package erlang (Project home:Ledest:erlang:20)

From e6f3aa45b9b53c4bc6b6bb2477177dae9fd6f810 Mon Sep 17 00:00:00 2001
From: Hans Bolinder <hasse@erlang.org>
Date: Mon, 28 May 2018 13:11:05 +0200
Subject: [PATCH 4/6] erts: Improve a contract

---
 erts/preloaded/src/erts_code_purger.erl | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/erts/preloaded/src/erts_code_purger.erl b/erts/preloaded/src/erts_code_purger.erl
index fd214228c7..c41532ed87 100644
--- a/erts/preloaded/src/erts_code_purger.erl
+++ b/erts/preloaded/src/erts_code_purger.erl
@@ -1,7 +1,7 @@
 %%
 %% %CopyrightBegin%
 %%
-%% Copyright Ericsson AB 2016. All Rights Reserved.
+%% Copyright Ericsson AB 2016-2018. All Rights Reserved.
 %%
 %% Licensed under the Apache License, Version 2.0 (the "License");
 %% you may not use this file except in compliance with the License.
@@ -25,7 +25,7 @@
 -export([start/0, purge/1, soft_purge/1, pending_purge_lambda/3,
 	 finish_after_on_load/2]).
 
--spec start() -> term().
+-spec start() -> no_return().
 start() ->
     register(erts_code_purger, self()),
     process_flag(trap_exit, true),
-- 
2.17.1