Skip to content

Added Example Code/ Notes and warnings #750

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

Merged
merged 5 commits into from
Jul 25, 2020
Merged

Conversation

ashpande
Copy link
Contributor

There was no example code given, and the returns section was incorrect. The code was tested on Arduino Mega 2560.

There was no example code given, and the returns section was incorrect. The code was tested on Arduino Mega 2560.
per1234 added 3 commits July 15, 2020 05:53
The newly added content was placed inside the "See Also" section, which caused the generation process to fail:

ERROR 2020/07/15 05:00:40 Language/Functions/Bits and Bytes/bitClear.adoc: asciidoctor: WARNING: <stdin>: line 69: section title out of sequence: expected level 1, got level 2
ERROR 2020/07/15 05:00:40 Language/Functions/Bits and Bytes/bitClear.adoc: asciidoctor: WARNING: <stdin>: line 71: unterminated open block
- Use the standard "Arduino sketch style" formatting.
- Move the print to setup(), so it only happens once.
The zero-indexed nature of the macro is already documented in the parameters section.

The handling of zeroed bits is already clear from the description.

The requirement for the parameters to be integers seems fairly obvious to me, but I'm open to being convinced otherwise. However, if it is necessary to document the supported parameter types, that should be done in the parameters section, following the convention that has been established through the rest of the language reference content, so this part needs to be removed either way.
@per1234 per1234 merged commit a942f0a into arduino:master Jul 25, 2020
@per1234
Copy link
Collaborator

per1234 commented Jul 25, 2020

Thanks so much @AshutoshPandey123456!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants