Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:24
erlang
7588-Fix-spec-for-json-format-3.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 7588-Fix-spec-for-json-format-3.patch of Package erlang
From efd3afd02de7937ba58116825a55a65c114d4440 Mon Sep 17 00:00:00 2001 From: Dan Gudmundsson <dgud@erlang.org> Date: Tue, 8 Oct 2024 10:03:34 +0200 Subject: [PATCH] Fix spec for json:format/3 Was wrong, the purpose of that function is to take any term. --- lib/stdlib/src/json.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/stdlib/src/json.erl b/lib/stdlib/src/json.erl index 72f7b1a1fb..f7e9d57ed8 100644 --- a/lib/stdlib/src/json.erl +++ b/lib/stdlib/src/json.erl @@ -616,7 +616,7 @@ ok """. -doc(#{since => ~"OTP @OTP-19112@"}). --spec format(Term :: encode_value(), Encoder::formatter(), Options :: map()) -> iodata(). +-spec format(Term :: dynamic(), Encoder::formatter(), Options :: map()) -> iodata(). format(Term, Encoder, Options) when is_function(Encoder, 3) -> Def = #{level => 0, col => 0, -- 2.43.0
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor