learnxinyminutes-docs
learnxinyminutes-docs copied to clipboard
[c/en] Wrapping fixes and some copy edits/small additions
This does a few things with the c/en tutorial.
- Fix the word wrapping. A lot of lines were longer than 80 characters. Some small copy edits here to prevent line breaks in strange places.
- Added note about
void
in to signal empty parameter lists and addvoid
to existing empty param functions - Note about not using braces for one-statement control blocks.
- Note about using field initializers for structs
- Note about
#pragma once
, and aboutstatic inline
funcs in headers. Wasn't sure if this was too niche to be usefully included. - Small copy edits
- [x] I solemnly swear that this is all original content of which I am the original author
- [x] Pull request title is prepended with
[language/lang-code]
(example[python/fr-fr]
or[java/en]
) - [x] Pull request touches only one file (or a set of logically related files with similar changes made)
- [x] Content changes are aimed at intermediate to experienced programmers (this is a poor format for explaining fundamental programming concepts)
- [x] If you've changed any part of the YAML Frontmatter, make sure it is formatted according to CONTRIBUTING.md
- [x] Yes, I have double-checked quotes and field names!