diff options
author | Hans Bolinder <[email protected]> | 2014-02-20 13:28:18 +0100 |
---|---|---|
committer | Hans Bolinder <[email protected]> | 2014-02-20 13:28:18 +0100 |
commit | 5605ed452429d3ec037e86708da357ffff46d5bc (patch) | |
tree | d403143bf7178bc32ac97808dbf5f500db4293fc /lib/kernel/src | |
parent | 4ba99d6cf384fa9aeb74981312716b275a53fca1 (diff) | |
download | otp-5605ed452429d3ec037e86708da357ffff46d5bc.tar.gz otp-5605ed452429d3ec037e86708da357ffff46d5bc.tar.bz2 otp-5605ed452429d3ec037e86708da357ffff46d5bc.zip |
Correct the contract of inet:ntoa/1
Thanks to Max Treskin.
Diffstat (limited to 'lib/kernel/src')
-rw-r--r-- | lib/kernel/src/inet.erl | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/kernel/src/inet.erl b/lib/kernel/src/inet.erl index 792593246a..41d422d7d4 100644 --- a/lib/kernel/src/inet.erl +++ b/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 @@ -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) -> |