SIGN IN SIGN UP

Langref misc fix and improvement (#14695)

* langref: improve the Hello World section

Clarify that a Zig source file must have the .zig extension.

Fix a typo.

* langref: improve the Comments section

  - Document how doc comments are used by -femit-docs
  - Rename "Doc comments" to "Doc Comments", for consistency
  - Clarify that placing a doc comment in an unexpected place is a
    compiler error and add two incorrect examples
  - Document the current Autodoc behavior, when normal comments are
    interleaved with doc comments
  - Rewrite the documentation for top-level doc comments

* langref: improve the Zig Test section

Document that the test name can also be an identifier, in addition to a
string literal.

Update the test output for the first test.

Closes #14085
M
Manlio Perillo committed
366e3c657fe7d898465a0e822f1999f0572f832e
Parent: 6e84f46
Committed by GitHub <noreply@github.com> on 6/17/2023, 8:35:50 PM