From eb977533597142f156bf4bd743d7379a20fff545 Mon Sep 17 00:00:00 2001 From: Victor Date: Thu, 9 Jan 2025 13:40:09 -0800 Subject: [PATCH] docs: Fix a spec typo for Ash.read_one! (#1705) --- lib/ash.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ash.ex b/lib/ash.ex index 59219dad1..0935da9ed 100644 --- a/lib/ash.ex +++ b/lib/ash.ex @@ -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)