From 15de51d9a364df9da9fcf6e0c2803f637701344b Mon Sep 17 00:00:00 2001 From: nwjlyons Date: Tue, 30 Jun 2026 18:12:47 +0100 Subject: [PATCH] Update Enum.reduce_while/3 type spec to use acc alias --- lib/elixir/lib/enum.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/elixir/lib/enum.ex b/lib/elixir/lib/enum.ex index 385d894655..a647ca2005 100644 --- a/lib/elixir/lib/enum.ex +++ b/lib/elixir/lib/enum.ex @@ -2671,7 +2671,7 @@ defmodule Enum do 5050 """ - @spec reduce_while(t, any, (element, any -> {:cont, any} | {:halt, any})) :: any + @spec reduce_while(t, acc, (element, acc -> {:cont, acc} | {:halt, acc})) :: acc def reduce_while(enumerable, acc, fun) do Enumerable.reduce(enumerable, {:cont, acc}, fun) |> elem(1) end