Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:23
erlang
0974-stdlib-Fix-specs-for-shell_docs-get_doc-3-...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0974-stdlib-Fix-specs-for-shell_docs-get_doc-3-and-get_ca.patch of Package erlang
From fcd88756e65d0b824843eced47d587d5d8565f75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20H=C3=B6gberg?= <john@erlang.org> Date: Thu, 28 Apr 2022 17:55:24 +0200 Subject: [PATCH] stdlib: Fix specs for shell_docs:get_doc/3 and get_callback_doc/3 The spec said that `Metadata` must be the empty map, which is not what we meant. --- lib/stdlib/src/shell_docs.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/stdlib/src/shell_docs.erl b/lib/stdlib/src/shell_docs.erl index a804246e17..b2fa4a9fa0 100644 --- a/lib/stdlib/src/shell_docs.erl +++ b/lib/stdlib/src/shell_docs.erl @@ -344,7 +344,7 @@ get_doc(Module) -> Arity :: arity(), Anno :: erl_anno:anno(), Signature :: [binary()], - Metadata :: #{}. + Metadata :: map(). get_doc(Module, Function, Arity) -> {ok, #docs_v1{ docs = Docs } } = code:get_doc(Module), FnFunctions = @@ -499,7 +499,7 @@ render_type(_Module, Type, Arity, #docs_v1{ docs = Docs } = D, Config) -> Arity :: arity(), Anno :: erl_anno:anno(), Signature :: [binary()], - Metadata :: #{}. + Metadata :: map(). get_callback_doc(Module, Callback, Arity) -> {ok, #docs_v1{ docs = Docs } } = code:get_doc(Module), FnFunctions = -- 2.34.1
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