Skip to content

Commit 786efb2

Browse files
committed
Do not use opaque :sets.set in MapSet.t()
1 parent ef96336 commit 786efb2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/elixir/lib/map_set.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ defmodule MapSet do
5555

5656
@type value :: term
5757

58-
# We don't use opaque because MapSets can be inlined,
58+
# We don't use @opaque (or `:sets.set` which is opaque) because MapSets can be inlined,
5959
# either via module attributes or by the compiler.
60-
@typep internal(value) :: :sets.set(value)
60+
@typep internal(value) :: %{optional(value) => term()}
6161

6262
@type t(value) :: %__MODULE__{map: internal(value)}
6363
@type t :: t(term)

0 commit comments

Comments
 (0)