Skip to content

Commit

Permalink
Fix spec for Plug.Upload.give_away/3 (#1083)
Browse files Browse the repository at this point in the history
  • Loading branch information
SeaaaaaSharp committed Mar 21, 2022
1 parent 86efb7e commit e36bd0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/plug/upload.ex
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ defmodule Plug.Upload do
Useful if you want to do some work on an uploaded file in another process
since it means that the file will survive the end of the request.
"""
@spec give_away(t | binary, pid, pid) :: :ok | {:error, binary}
@spec give_away(t | binary, pid, pid) :: :ok | {:error, :unknown_path}
def give_away(upload, to_pid, from_pid \\ self())

def give_away(%__MODULE__{path: path}, to_pid, from_pid) do
Expand Down

0 comments on commit e36bd0f

Please sign in to comment.