Skip to content

Commit

Permalink
Fix spec on register_options/2 (#376)
Browse files Browse the repository at this point in the history
  • Loading branch information
notslang authored Jun 25, 2024
1 parent e385174 commit 5353c4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/req/request.ex
Original file line number Diff line number Diff line change
Expand Up @@ -1035,7 +1035,7 @@ defmodule Req.Request do
Req.get!(req, url: "/status/201", foo: :bar).status
#=> 201
"""
@spec register_options(t(), keyword()) :: t()
@spec register_options(t(), [atom()]) :: t()
def register_options(%Req.Request{} = request, options) when is_list(options) do
update_in(request.registered_options, &MapSet.union(&1, MapSet.new(options)))
end
Expand Down

0 comments on commit 5353c4f

Please sign in to comment.