Skip to content

Commit

Permalink
Correct the contract of inet:ntoa/1
Browse files Browse the repository at this point in the history
Thanks to Max Treskin.
  • Loading branch information
uabboli committed Feb 20, 2014
1 parent 4ba99d6 commit 5605ed4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/kernel/src/inet.erl
@@ -1,7 +1,7 @@
%%
%% %CopyrightBegin%
%%
%% Copyright Ericsson AB 1997-2013. All Rights Reserved.
%% Copyright Ericsson AB 1997-2014. 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
Expand Down Expand Up @@ -597,8 +597,7 @@ getservbyname(Name, Protocol) when is_atom(Name) ->
Error -> Error
end.

-spec ntoa(IpAddress) ->
{ok, Address} | {error, einval} when
-spec ntoa(IpAddress) -> Address | {error, einval} when
Address :: string(),
IpAddress :: ip_address().
ntoa(Addr) ->
Expand Down

0 comments on commit 5605ed4

Please sign in to comment.