Skip to content

Commit

Permalink
Fix incorrect typespec
Browse files Browse the repository at this point in the history
  • Loading branch information
joshrieken committed Jun 3, 2020
1 parent e5a316f commit 6fadc86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/plasm.ex
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ defmodule Plasm do
Puppy |> Plasm.at_or_earlier_than(:updated_at, "2014-04-17") |> Repo.all
"""
@spec at_or_earlier_than(Ecto.Queryable.t(), atom, %DateTime{}) :: Ecto.Queryable.to()
@spec at_or_earlier_than(Ecto.Queryable.t(), atom, %DateTime{}) :: Ecto.Queryable.t()
def at_or_earlier_than(query, field_name, %DateTime{} = date_time) when is_atom(field_name) do
query
|> where([x], field(x, ^field_name) <= ^date_time)
Expand Down

0 comments on commit 6fadc86

Please sign in to comment.