diff options
author | Hans Bolinder <[email protected]> | 2015-04-27 08:27:27 +0200 |
---|---|---|
committer | Hans Bolinder <[email protected]> | 2015-04-27 08:27:27 +0200 |
commit | 39ce3a33b8d692608850d4bd3a0bf078359b3c91 (patch) | |
tree | bad06e6b4d56a847650f19598d7cc96c512709a4 | |
parent | 7ff8f81d2569ed79817fec2beddbe75c46273f40 (diff) | |
parent | f54e8c99a1b0d3831a5b123eed7f9e0297c0f713 (diff) | |
download | otp-39ce3a33b8d692608850d4bd3a0bf078359b3c91.tar.gz otp-39ce3a33b8d692608850d4bd3a0bf078359b3c91.tar.bz2 otp-39ce3a33b8d692608850d4bd3a0bf078359b3c91.zip |
Merge branch 'hb/stdlib/update_gb_sets_type'
* hb/stdlib/update_gb_sets_type:
stdlib: Substitute set() for gb_sets:set() in gb_sets
-rw-r--r-- | lib/stdlib/src/gb_sets.erl | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/lib/stdlib/src/gb_sets.erl b/lib/stdlib/src/gb_sets.erl index 0a26d0182d..393fb07229 100644 --- a/lib/stdlib/src/gb_sets.erl +++ b/lib/stdlib/src/gb_sets.erl @@ -1,7 +1,7 @@ %% %% %CopyrightBegin% %% -%% Copyright Ericsson AB 2001-2014. All Rights Reserved. +%% Copyright Ericsson AB 2001-2015. 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 @@ -207,21 +207,19 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -%%% gb_sets:set() in OTP 17 only. - -spec empty() -> Set when - Set :: gb_sets:set(). + Set :: set(). empty() -> {0, nil}. -spec new() -> Set when - Set :: gb_sets:set(). + Set :: set(). new() -> empty(). -spec is_empty(Set) -> boolean() when - Set :: gb_sets:set(). + Set :: set(). is_empty({0, nil}) -> true; @@ -229,7 +227,7 @@ is_empty(_) -> false. -spec size(Set) -> non_neg_integer() when - Set :: gb_sets:set(). + Set :: set(). size({Size, _}) -> Size. |