diff options
author | Ricardo Catalinas Jiménez <[email protected]> | 2012-02-24 14:36:05 +0100 |
---|---|---|
committer | Ricardo Catalinas Jiménez <[email protected]> | 2012-02-24 14:36:05 +0100 |
commit | c165d6c76fd99a0b3d91677b4531d9ee00c97dae (patch) | |
tree | 4766ad04d5037b26184afbdb2dd90f9e2bce88c9 /lib/stdlib | |
parent | f195d88713035ec23e4d1c2c2e09f73bb2178481 (diff) | |
download | otp-c165d6c76fd99a0b3d91677b4531d9ee00c97dae.tar.gz otp-c165d6c76fd99a0b3d91677b4531d9ee00c97dae.tar.bz2 otp-c165d6c76fd99a0b3d91677b4531d9ee00c97dae.zip |
Add the type restrictions in the code comments
Diffstat (limited to 'lib/stdlib')
-rw-r--r-- | lib/stdlib/src/supervisor.erl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/stdlib/src/supervisor.erl b/lib/stdlib/src/supervisor.erl index 17e37e154e..b49550ff6d 100644 --- a/lib/stdlib/src/supervisor.erl +++ b/lib/stdlib/src/supervisor.erl @@ -1055,9 +1055,9 @@ remove_child(Child, State) -> %% Args: SupName = {local, atom()} | {global, atom()} | self %% Type = {Strategy, MaxIntensity, Period} %% Strategy = one_for_one | one_for_all | simple_one_for_one | -%% rest_for_one -%% MaxIntensity = integer() -%% Period = integer() +%% rest_for_one +%% MaxIntensity = integer() >= 0 +%% Period = integer() > 0 %% Mod :== atom() %% Args :== term() %% Purpose: Check that Type is of correct type (!) @@ -1108,7 +1108,7 @@ supname(N, _) -> N. %%% where Name is an atom %%% Func is {Mod, Fun, Args} == {atom(), atom(), list()} %%% RestartType is permanent | temporary | transient -%%% Shutdown = integer() | infinity | brutal_kill +%%% Shutdown = integer() > 0 | infinity | brutal_kill %%% ChildType = supervisor | worker %%% Modules = [atom()] | dynamic %%% Returns: {ok, [child_rec()]} | Error |