Skip to content

Commit

Permalink
Fix optional callback arities (#6)
Browse files Browse the repository at this point in the history
* Fix optional callback arities

* Update version to 0.1.1
  • Loading branch information
bryanjos authored and sunny-g committed Mar 7, 2018
1 parent 2d42d96 commit 8d82e72
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/xdr/type/base.ex
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@ defmodule XDR.Type.Base do
"""
@callback decode(xdr :: xdr) :: {:ok, {native :: t, rest :: xdr}} | {:error, reason :: error}

@optional_callbacks [length: 1, new: 0]
@optional_callbacks [length: 0, new: 1]
end
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ defmodule XDR.Mixfile do
use Mix.Project

@name :xdr
@version "0.1.0"
@version "0.1.1"

@deps [
{:math, "~> 0.3.0"},
Expand Down

0 comments on commit 8d82e72

Please sign in to comment.