From e36bd0fc17edb1264c504850a324e51397938a34 Mon Sep 17 00:00:00 2001 From: initialCCC <98841125+initialCCC@users.noreply.github.com> Date: Mon, 21 Mar 2022 09:35:56 +0100 Subject: [PATCH] Fix spec for Plug.Upload.give_away/3 (#1083) --- lib/plug/upload.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/plug/upload.ex b/lib/plug/upload.ex index f708a1ab..4f1b1f5a 100644 --- a/lib/plug/upload.ex +++ b/lib/plug/upload.ex @@ -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