learnxinyminutes-docs icon indicating copy to clipboard operation
learnxinyminutes-docs copied to clipboard

[c/en] Wrapping fixes and some copy edits/small additions

Open sjrct opened this issue 1 year ago • 0 comments

This does a few things with the c/en tutorial.

  1. 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.
  2. Added note about void in to signal empty parameter lists and add void to existing empty param functions
  3. Note about not using braces for one-statement control blocks.
  4. Note about using field initializers for structs
  5. Note about #pragma once, and about static inline funcs in headers. Wasn't sure if this was too niche to be usefully included.
  6. 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!

sjrct avatar Jul 10 '23 18:07 sjrct