Skip to content

docs(shared): say plainly what each item does - #186

Open
PiquelChips wants to merge 1 commit into
mainfrom
docs/shared
Open

PiquelChips wants to merge 1 commit into
mainfrom
docs/shared

Conversation

@PiquelChips

Copy link
Copy Markdown
Member

Many doc comments on main were hard to follow: long single sentences, design asides and rationale mixed into what should say what an item does. This rewrites them so each one says plainly what the item does, and nothing else a caller doesn't need.

It covers origin-shared: ids, names, paths, principals, targets, the object encoding, revisions, trees, acceptances and statements, plus its benchmarks. 101 doc comments are rewritten; the ones that were already clear are left alone.

Only /// and //! lines change: no code, and every code example (doc tests included) is byte-for-byte the same. # Errors and # Panics sections are kept, with the failure cases listed plainly; a few that missed a case now list it. Clippy, the doc tests and cargo doc pass with no new warnings.

This is one of five docs PRs on main, each touching different files, so they merge in any order. The open stack's own docs were rewritten the same way.

Note

Written by Claude Opus 5.5 in Claude Code (via T3 Code)

Rewrites the doc comments of these files so each says plainly what its item does, without design asides. Code and code examples are unchanged.
@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 23 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: a8151d70-f5c1-45c0-b7a0-76c46ab71a20
Commits

Reviewing files that changed from the base of the PR and between aaaecfb and edb8993.

Files selected for processing: 13

  • crates/origin-shared/benches/object.rs
  • crates/origin-shared/src/id.rs
  • crates/origin-shared/src/name.rs
  • crates/origin-shared/src/object/acceptance.rs
  • crates/origin-shared/src/object/encoding.rs
  • crates/origin-shared/src/object/errors.rs
  • crates/origin-shared/src/object/mod.rs
  • crates/origin-shared/src/object/revision.rs
  • crates/origin-shared/src/object/statement.rs
  • crates/origin-shared/src/object/tree.rs
  • crates/origin-shared/src/path.rs
  • crates/origin-shared/src/principal.rs
  • crates/origin-shared/src/target.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

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