Skip to content

Commit a34ccfe

Browse files
author
José Valim
committed
Make the regex type non-opaque
1 parent 8f4442f commit a34ccfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/elixir/lib/regex.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ defmodule Regex do
7878

7979
defstruct re_pattern: nil, source: "", opts: ""
8080

81-
@opaque t :: %__MODULE__{re_pattern: term, source: binary, opts: binary}
81+
@type t :: %__MODULE__{re_pattern: term, source: binary, opts: binary}
8282

8383
defmodule CompileError do
8484
defexception message: "regex could not be compiled"

0 commit comments

Comments
 (0)