Skip to content

kernel: Document inet:getaddr/3#10981

Open
AndreaBruzz wants to merge 2 commits intoerlang:masterfrom
AndreaBruzz:patch-1
Open

kernel: Document inet:getaddr/3#10981
AndreaBruzz wants to merge 2 commits intoerlang:masterfrom
AndreaBruzz:patch-1

Conversation

@AndreaBruzz
Copy link
Copy Markdown

@AndreaBruzz AndreaBruzz commented Apr 7, 2026

The inet:getaddr/3 function is exported but marked -doc false, hiding it from the documentation.

Move the full documentation to the /3 variant and use the #{equiv => ...} attribute on the /2 version.

The inet:getaddr/3 function is exported but marked -doc false, hiding itfrom the documentation.

Move the full documentation to the /3 variant and use the
#{equiv => ...} attribute on the /2 version.
Copilot AI review requested due to automatic review settings April 7, 2026 15:05
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Apr 7, 2026

CLA assistant check
All committers have signed the CLA.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 7, 2026

CT Test Results

    2 files     74 suites   1h 12m 54s ⏱️
1 795 tests 1 375 ✅ 419 💤 1 ❌
2 047 runs  1 569 ✅ 477 💤 1 ❌

For more details on these failures, see this check.

Results for commit 5859856.

♻️ 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

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Documents the previously hidden exported inet:getaddr/3 API and makes inet:getaddr/2 reference it as the equivalent default-timeout variant.

Changes:

  • Move the full -doc text from getaddr/2 to getaddr/3 (removing -doc false from /3).
  • Add -doc(#{equiv => getaddr(Host, Family, infinity)}). to getaddr/2 to link it to the /3 variant.
  • Extend the documentation to describe the Timeout parameter and its default.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread lib/kernel/src/inet.erl Outdated
@rickard-green rickard-green added the team:PS Assigned to OTP team PS label Apr 13, 2026
Clarified the description of the Timeout parameter in the getaddr function.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

team:PS Assigned to OTP team PS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants