File 1408-Fix-spec-of-qlc-format_error-1.patch of Package erlang
From 39d6c3a5b715850e4fc35fdd27a37e7a2f0ffe5c Mon Sep 17 00:00:00 2001
From: Radek Szymczyszyn <lavrin@gmail.com>
Date: Thu, 26 Feb 2026 18:40:49 +0100
Subject: [PATCH] Fix spec of qlc:format_error/1
---
lib/stdlib/src/qlc.erl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/stdlib/src/qlc.erl b/lib/stdlib/src/qlc.erl
index 711c47b6c6..304e6c177a 100644
--- a/lib/stdlib/src/qlc.erl
+++ b/lib/stdlib/src/qlc.erl
@@ -372,7 +372,7 @@ the functions of the `qlc` module or the parse transform. This function is
end.
-spec(format_error(Error) -> Chars when
- Error :: {error, module(), term()},
+ Error :: {error, module(), term()} | atom() | {atom(), term()} | {atom(), term(), term()},
Chars :: io_lib:chars()).
format_error(not_a_query_list_comprehension) ->
io_lib:format("argument is not a query list comprehension", []);
--
2.51.0