Skip to content

docs(ast): discipline comments per comment spec - #22

Open
Boreas618 wants to merge 1 commit into
mainfrom
docs/comment-discipline-ast
Open

docs(ast): discipline comments per comment spec#22
Boreas618 wants to merge 1 commit into
mainfrom
docs/comment-discipline-ast

Conversation

@Boreas618

Copy link
Copy Markdown
Contributor

Comment-discipline sweep of the AST files not covered by other PRs (decl, expr, ops, program, stmt, types), per the repo comment specification:

  • Removed what-narrations (§5.1/§2.2): impl-block header restating the impl, an inline comment narrating a format!.
  • Precision fix (§4/§8.1): Pos doc no longer hedges between byte offset and character index — it is a byte offset (verified at parser/common.rs).

Comments-only; cargo build clean; no new rustdoc warnings.

- removed 2 narrations of the obvious (§5.1): impl-block header on
  FnCall and the end-of-line 'combine prefix with :: separator' comment
- rewrote 1 imprecise doc (§4/§8.1): Pos is a byte offset (pest span
  start), not 'byte offset or character index'
- reviewed 6 files; remaining dense rustdoc field/variant docs kept as
  borderline keeps under house style (no dividers, tags, or
  commented-out code found in scope)
@Boreas618
Boreas618 force-pushed the docs/comment-discipline-ast branch from 58746d0 to c65c1c6 Compare August 1, 2026 10:58
@Boreas618
Boreas618 changed the base branch from assign3 to main August 1, 2026 11:13
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.

1 participant