Skip to content
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

Polish documentation for the lists module #9464

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

bjorng
Copy link
Contributor

@bjorng bjorng commented Feb 19, 2025

Ensure that the first paragraph describing each function makes sense by itself when shown in the Summary part of the documentation.

Add examples to functions lacking examples.

While at it, also remove comments for documented functions, and remove out-commented code, and do some other minor clean ups.

@bjorng bjorng added team:VM Assigned to OTP team VM enhancement testing currently being tested, tag is used by OTP internal CI labels Feb 19, 2025
@bjorng bjorng self-assigned this Feb 19, 2025
Copy link
Contributor

github-actions bot commented Feb 19, 2025

CT Test Results

    2 files     97 suites   1h 10m 13s ⏱️
2 190 tests 2 143 ✅ 47 💤 0 ❌
2 556 runs  2 507 ✅ 49 💤 0 ❌

Results for commit 6cc8f7d.

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


_Examples:_

```
Copy link
Contributor

Choose a reason for hiding this comment

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

Consistency is good, but I don't think there is any technical reason to have erlang. Both ExDoc and shell_docs_test assume that if no language is given, it is erlang.

garazdawi
garazdawi previously approved these changes Feb 19, 2025
Returns a new list `List3` that is a copy of `List1`, subjected to the following
procedure: for each element in `List2`, its first occurrence in `List1` is
deleted.

Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change

-doc "Returns a list containing the sorted elements of `List1`.".
```
> lists:sort([4,3,9]).
[3,4,9]
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we include a non-integer example?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, good idea.

@bjorng bjorng force-pushed the bjorn/stdlib/lists-documentation branch 2 times, most recently from 4656cd7 to 2bb85e8 Compare February 20, 2025 05:46
@bjorng bjorng requested a review from garazdawi February 20, 2025 05:47
garazdawi
garazdawi previously approved these changes Feb 20, 2025
@bjorng bjorng changed the title Polish documentation for the lists modules Polish documentation for the lists module Feb 21, 2025
Ensure that the first paragraph describing each function makes sense
by itself when shown in the Summary part of the documentation.

Add examples to functions lacking examples.

While at it, also remove comments for documented functions, and
remove out-commented code, and do some other minor clean ups.
@bjorng bjorng force-pushed the bjorn/stdlib/lists-documentation branch from 2455cff to 6cc8f7d Compare February 21, 2025 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement team:VM Assigned to OTP team VM testing currently being tested, tag is used by OTP internal CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants