-
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
Polish documentation for the lists module #9464
base: master
Are you sure you want to change the base?
Conversation
CT Test Results 2 files 97 suites 1h 10m 13s ⏱️ 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 |
lib/stdlib/src/lists.erl
Outdated
|
||
_Examples:_ | ||
|
||
``` |
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.
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
.
lib/stdlib/src/lists.erl
Outdated
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. | ||
|
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.
lib/stdlib/src/lists.erl
Outdated
-doc "Returns a list containing the sorted elements of `List1`.". | ||
``` | ||
> lists:sort([4,3,9]). | ||
[3,4,9] |
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.
Should we include a non-integer example?
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.
Yes, good idea.
4656cd7
to
2bb85e8
Compare
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.
2455cff
to
6cc8f7d
Compare
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.