-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix broken doc signatures and links #9018
base: maint
Are you sure you want to change the base?
Fix broken doc signatures and links #9018
Conversation
These anchors were used a long time ago to point to the function after the current function, but their use have become obsolete with the usage of ex_doc.
These anchors were used a long time ago to point to the function after the current function, but their use have become obsolete with the usage of ex_doc.
These anchors were used a long time ago to point to the function after the current function, but their use have become obsolete with the usage of ex_doc.
These anchors were used a long time ago to point to the function after the current function, but their use have become obsolete with the usage of ex_doc.
These anchors were used a long time ago to point to the function after the current function, but their use have become obsolete with the usage of ex_doc.
CT Test Results 14 files 245 suites 3h 18m 0s ⏱️ Results for commit 031eb6f. ♻️ This comment has been updated with latest results. To speed up review, make sure that you have read Contributing to Erlang/OTP and that all checks pass. See the TESTING and DEVELOPMENT HowTo guides for details about how to run test locally. Artifacts// Erlang/OTP Github Action Bot |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know why you have kept some function call examples
@@ -1986,7 +1980,7 @@ paged_result_control(PageSize, Cookie) when is_integer(PageSize) -> | |||
%%% -------------------------------------------------------------------- | |||
|
|||
-doc """ | |||
paged_result_cookie(SearchResult) -> binary() | |||
paged_result_cookie(SearchResult) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove?
@@ -52,7 +52,7 @@ | |||
%% integer() - explicit detail level of tracing | |||
%%---------------------------------------------------------------------- | |||
-doc """ | |||
make_pattern(RawPattern) -> TracePattern | |||
make_pattern(RawPattern) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove
@@ -115,7 +115,7 @@ make_pattern({Mod, Pattern}) when is_atom(Mod) -> | |||
%% accordingly with erlang:trace_pattern/2. | |||
%%---------------------------------------------------------------------- | |||
-doc """ | |||
change_pattern(Pattern) -> ok | |||
change_pattern(Pattern) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove
-spec tracer() -> {ok, [node()]} | {error, term()}. | ||
tracer() -> tracer(node()). | ||
-doc """ | ||
tracer(Nodes) -> Result | ||
tracer(Nodes) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove
@@ -820,7 +794,7 @@ tpl(A,B,C) -> | |||
dbg:tpl(A,B,ms(C)). | |||
|
|||
-doc """ | |||
tpl(Module [, Function [, Arity]], MatchSpec) | |||
tpl(Module, Function, Arity, MatchSpec) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove?
@dgud I kept them because otherwise the signature will be incorrect. |
@@ -248,8 +244,6 @@ call(ChannelPid, Msg, TimeOute) -> | |||
end. | |||
|
|||
-doc """ | |||
cast(ChannelRef, Msg) -> ok | |||
Sends an asynchronous message to the channel process and returns ok immediately, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pls explain. is leaving paragraph containing more than 1 sentence as a signature also fine? In other places I thought single sentence is preferred ...
@@ -216,8 +214,6 @@ call(ChannelPid, Msg) -> | |||
call(ChannelPid, Msg, infinity). | |||
|
|||
-doc """ | |||
call(ChannelRef, Msg, Timeout) -> Reply | {error, Reason} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR removes broken doc signatures that were generated as part of the erl_docgen to ex_doc migration.
It also removes all anchors at the end of a documentation attribute as those links to those anchors almost always pointed to an incorrect place in the docs.