Skip to content

Commit

Permalink
fix up patch function copy/paste error
Browse files Browse the repository at this point in the history
  • Loading branch information
scrogson committed Oct 28, 2015
1 parent 1da2ea2 commit 8300506
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/oauth2/access_token.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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 """
Expand All @@ -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 """
Expand Down

0 comments on commit 8300506

Please sign in to comment.