From c5853ab4f471e7b1c023105e46ea2a2ef9dcca35 Mon Sep 17 00:00:00 2001 From: Matt Enlow Date: Sat, 10 May 2025 11:09:58 +0300 Subject: [PATCH] fix typo in Sandbox.mode spec --- lib/ecto/adapters/sql/sandbox.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ecto/adapters/sql/sandbox.ex b/lib/ecto/adapters/sql/sandbox.ex index ca465b7b..86382e72 100644 --- a/lib/ecto/adapters/sql/sandbox.ex +++ b/lib/ecto/adapters/sql/sandbox.ex @@ -498,7 +498,7 @@ defmodule Ecto.Adapters.SQL.Sandbox do process set the ownership mode to `{:shared, _}` and is still alive. """ @spec mode(Ecto.Repo.t() | pid(), :auto | :manual | {:shared, pid()}) :: - :ok | :already_shared | :now_owner | :not_found + :ok | :already_shared | :not_owner | :not_found def mode(repo, mode) when (is_atom(repo) or is_pid(repo)) and mode in [:auto, :manual] when (is_atom(repo) or is_pid(repo)) and elem(mode, 0) == :shared and is_pid(elem(mode, 1)) do