# `Dialyxir.Warnings.ExtraRange`
[🔗](https://github.com/jeremyjh/dialyxir/blob/1.4.8/lib/dialyxir/warnings/extra_range.ex#L1)

The @spec says the function returns more types than the function
actually returns.

## Example

    defmodule Example do
      @spec ok() :: :ok | :error
      def ok() do
        :ok
      end
    end

---

*Consult [api-reference.md](api-reference.md) for complete listing*
