We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02d6b24 commit 404b53bCopy full SHA for 404b53b
lib/elixir/lib/code.ex
@@ -1463,13 +1463,15 @@ defmodule Code do
1463
options and for a description of all options, see
1464
`put_compiler_option/2`.
1465
1466
+ Returns a map with previous values.
1467
+
1468
## Examples
1469
- Code.compiler_options()
- #=> %{debug_info: true, docs: true, ...}
1470
+ Code.compiler_options(warnings_as_errors: true)
1471
+ #=> %{warnings_as_errors: false}
1472
1473
"""
- @spec compiler_options(Enumerable.t()) :: %{optional(atom) => boolean}
1474
+ @spec compiler_options(Enumerable.t({atom, term})) :: %{optional(atom) => term}
1475
def compiler_options(opts) do
1476
for {key, value} <- opts, into: %{} do
1477
previous = get_compiler_option(key)
0 commit comments