Skip to content

Commit

Permalink
Fix type spec on Speck.validate\2
Browse files Browse the repository at this point in the history
  • Loading branch information
abelino committed Feb 3, 2025
1 parent 8afd2b1 commit 842628c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/speck.ex
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ defmodule Speck do
@doc """
Validate and coerce the params according to a schema.
"""
@spec validate(schema :: module, params :: map) :: {:ok, struct}, {:error, map}
@spec validate(schema :: module, params :: map) :: {:ok, struct} | {:error, map}
def validate(schema, params) do
opts = [strict: schema.strict()]

Expand Down

0 comments on commit 842628c

Please sign in to comment.