From 83005065d68f3448ee622769d95fc29f6c5b13d5 Mon Sep 17 00:00:00 2001 From: Sonny Scroggin Date: Tue, 27 Oct 2015 21:02:31 -0500 Subject: [PATCH] fix up patch function copy/paste error --- lib/oauth2/access_token.ex | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/oauth2/access_token.ex b/lib/oauth2/access_token.ex index ed88c38..52f5c9f 100644 --- a/lib/oauth2/access_token.ex +++ b/lib/oauth2/access_token.ex @@ -158,7 +158,7 @@ defmodule OAuth2.AccessToken do struct. """ @spec patch(t, binary, body, Client.headers, Keyword.t) :: {:ok, OAuth2.Response.t} | {:error, OAuth2.Error.t} - def put(token, url, body \\ "", headers \\ [], opts \\ []), + def patch(token, url, body \\ "", headers \\ [], opts \\ []), do: request(:patch, token, url, body, headers, opts) @doc """ @@ -168,8 +168,8 @@ defmodule OAuth2.AccessToken do An `OAuth2.Error` exception is raised if the request results in an error tuple (`{:error, reason}`). """ - @spec patch(t, binary, body, Client.headers, Keyword.t) :: OAuth2.Response.t | OAuth2.Error.t - def put!(token, url, body \\ "", headers \\ [], opts \\ []), + @spec patch!(t, binary, body, Client.headers, Keyword.t) :: OAuth2.Response.t | OAuth2.Error.t + def patch!(token, url, body \\ "", headers \\ [], opts \\ []), do: request!(:patch, token, url, body, headers, opts) @doc """