-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Add missing require
statements for the API
#7564
Add missing require
statements for the API
#7564
Conversation
9c0370d
to
29cb212
Compare
IMHO |
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.
There are some inconsistencies.
I like that the samples can be run directly by copy/pasting them 👍 .
29cb212
to
92ac496
Compare
@bcardiff thanks for the quick review, I updated the PR to cover all the API and fix the style inconsistency. |
require
statements for the API (WIP)require
statements for the API
92ac496
to
ba4b234
Compare
That's a serious bloat within the docs, whereas it pretty easy to just check main module doc comment for a needed |
@Sija having self-contained examples is good. Even at the cost of 2 duplicate lines IMO. |
I've been questioning the noise this generates, but having them is better than not having them. And it could perhaps in the future be an option to optimize the display of API docs. It's easy to recognize repeating |
@bcardiff I guess it can be merged, also I already covered [A-Z] (which means every doc page for 0.27.2 version. |
@bcardiff @straight-shoota I would like to contribute more to Crystal in my free time, is there a tag or a board for highest priority issues or tasks that I can work on? |
Thank you very much @Maroo-b! I'm looking forward for additional contributions from you. There is no real priority list. Important issues are usually ones tagged with the next milestone but they're often more complex bugs (or features that are already worked). Another starting point are the |
@straight-shoota thank you for your quick feedback! Sure, I'll check the labeled issues :) |
* upstream/master: fix example codes (2019-03) (crystal-lang#7569) Change bsearch's `/ 2` to `>> 1` for faster performance (crystal-lang#7531) Don't include private constants in the docs (crystal-lang#7575) Add missing `require` statements for the API (A-N) (crystal-lang#7564) Implement Int#{leading,trailing}_zeros_count (crystal-lang#7520)
The purpose of this PR is to add missing
require
statements in examples, it addresses this issueI went through the current docs (0.27.2) and check all the provided examples.
Issues
Iterator example:
link
returns this error: