diff options
author | Lukas Larsson <lukas@erlang.org> | 2022-01-26 10:03:02 +0100 |
---|---|---|
committer | Lukas Larsson <lukas@erlang.org> | 2022-01-31 10:19:41 +0100 |
commit | 80d7c3311f1de969cd881d8694403b4fb3fa097b (patch) | |
tree | 52a1c42cfb04910f1728f939da73ca7ea77cf523 /lib/stdlib | |
parent | a224d9485959ae26cb04dbce85aebbc9fea15c56 (diff) | |
download | erlang-80d7c3311f1de969cd881d8694403b4fb3fa097b.tar.gz |
ets: Export table_access and table_type types
Closes #4968
Diffstat (limited to 'lib/stdlib')
-rw-r--r-- | lib/stdlib/src/dets.erl | 2 | ||||
-rw-r--r-- | lib/stdlib/src/digraph.erl | 6 | ||||
-rw-r--r-- | lib/stdlib/src/ets.erl | 3 |
3 files changed, 6 insertions, 5 deletions
diff --git a/lib/stdlib/src/dets.erl b/lib/stdlib/src/dets.erl index ce5c8b2ae2..a288e66105 100644 --- a/lib/stdlib/src/dets.erl +++ b/lib/stdlib/src/dets.erl @@ -149,7 +149,7 @@ proc :: 'undefined' | pid(), % the pid of the Dets process match_program :: 'true' | 'undefined' - | {'match_spec', ets:comp_match_spec()} + | {'match_spec', ets:compiled_match_spec()} }). -record(open_args, { diff --git a/lib/stdlib/src/digraph.erl b/lib/stdlib/src/digraph.erl index 6f9bbcd2bd..35ca5d14ff 100644 --- a/lib/stdlib/src/digraph.erl +++ b/lib/stdlib/src/digraph.erl @@ -39,9 +39,9 @@ -export_type([graph/0, d_type/0, vertex/0, edge/0, label/0]). --record(digraph, {vtab = notable :: ets:tab(), - etab = notable :: ets:tab(), - ntab = notable :: ets:tab(), +-record(digraph, {vtab = notable :: ets:table(), + etab = notable :: ets:table(), + ntab = notable :: ets:table(), cyclic = true :: boolean()}). -opaque graph() :: #digraph{}. diff --git a/lib/stdlib/src/ets.erl b/lib/stdlib/src/ets.erl index 9032158e44..830a6d286c 100644 --- a/lib/stdlib/src/ets.erl +++ b/lib/stdlib/src/ets.erl @@ -42,7 +42,8 @@ -export([i/0, i/1, i/2, i/3]). --export_type([table/0, tid/0, match_spec/0, compiled_match_spec/0, match_pattern/0]). +-export_type([table/0, table_access/0, table_type/0, + tid/0, match_spec/0, compiled_match_spec/0, match_pattern/0]). %%----------------------------------------------------------------------------- |