From e765eb5e10e509b8e31876ee5b9c099e14b4c669 Mon Sep 17 00:00:00 2001 From: Zach Daniel Date: Sat, 23 Oct 2021 02:51:25 -0400 Subject: [PATCH] fix: use correct typespec for `Ash.Sort.parse_input/2` --- lib/ash/sort/sort.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ash/sort/sort.ex b/lib/ash/sort/sort.ex index ab8eb7d0..86f621d3 100644 --- a/lib/ash/sort/sort.ex +++ b/lib/ash/sort/sort.ex @@ -52,7 +52,7 @@ defmodule Ash.Sort do | list(atom | String.t() | {atom, sort_order()} | list(String.t())) | nil ) :: - Ash.Sort.t() | nil + {:ok, Ash.Sort.t()} | {:error, term} def parse_input(resource, sort) when is_binary(sort) do sort = String.split(sort, ",") parse_input(resource, sort)