Skip to content

Commit

Permalink
Fix some bad spec types
Browse files Browse the repository at this point in the history
  • Loading branch information
whitfin committed Feb 23, 2019
1 parent fa4a937 commit 34bf2e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/cachex.ex
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ defmodule Cachex do
{ :ok, [ { :entry, "key", 1538714590095, nil, "value" } ] }
"""
@spec export(cache, Keyword.t) :: { status, [ cache ] }
@spec export(cache, Keyword.t) :: { status, [ Spec.entry ] }
def export(cache, options \\ []) when is_list(options),
do: Router.call(cache, { :export, [ options ] })

Expand Down Expand Up @@ -770,7 +770,7 @@ defmodule Cachex do
{ :ok, true }
"""
@spec import(cache, [ Spec.entry ], Keyword.t) :: { status, [ cache ] }
@spec import(cache, [ Spec.entry ], Keyword.t) :: { status, any }
def import(cache, entries, options \\ [])
when is_list(entries) and is_list(options),
do: Router.call(cache, { :import, [ entries, options ] })
Expand Down

0 comments on commit 34bf2e8

Please sign in to comment.