Skip to content

Commit

Permalink
docs: Fix a spec typo for Ash.read_one! (#1705)
Browse files Browse the repository at this point in the history
  • Loading branch information
vkryukov authored Jan 9, 2025
1 parent 2bb94d7 commit eb97753
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ash.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2050,7 +2050,7 @@ defmodule Ash do
Runs an ash query, returning a single result or raise an error. See `read_one/2` for more.
"""
@doc spark_opts: [{1, @read_one_opts_schema}]
@spec read_one(resource_or_query :: Ash.Query.t() | Ash.Resource.t(), opts :: Keyword.t()) ::
@spec read_one!(resource_or_query :: Ash.Query.t() | Ash.Resource.t(), opts :: Keyword.t()) ::
Ash.Resource.record() | nil
def read_one!(query, opts \\ []) do
Ash.Helpers.expect_resource_or_query!(query)
Expand Down

0 comments on commit eb97753

Please sign in to comment.