Skip to content

Commit

Permalink
chore: fix typespecs
Browse files Browse the repository at this point in the history
  • Loading branch information
Ziinc committed May 10, 2024
1 parent 50519c0 commit 88d9ee0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/logflare/sources/rules.ex
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ defmodule Logflare.Rules do
@doc """
Updates a given rule.
"""
@spec update_rule(Rule.t(), map())
@spec update_rule(Rule.t(), map()) :: {:ok, Rule.t()} | {:error, Ecto.Changeset.t()}
def update_rule(%Rule{} = rule, attrs) do
rule
|> Rule.changeset(attrs)
Expand Down

0 comments on commit 88d9ee0

Please sign in to comment.