Skip to content

Run the pinned example, rather than ignoring it - #83

Closed
pathscale wants to merge 1 commit into
masterfrom
fix/pinned-doctest
Closed

Run the pinned example, rather than ignoring it#83
pathscale wants to merge 1 commit into
masterfrom
fix/pinned-doctest

Conversation

@pathscale

Copy link
Copy Markdown
Owner

The example on PartitionSet::pinned was ignore, so it never compiled. It
referenced prices, batch and tick without defining them — which is why it
could not run, and it is the only documentation that method has.

An ignore example on a new public method is worse than none: it reads as
checked, and it rots silently against the signature it documents. cargo test --doc reported it as an ignored test on beta.16.

Now self-contained and executable — declares a partitioned table, inserts,
and shows the pin-once-read-many shape the surrounding prose argues for.

test result: ok. 1 passed; 0 failed; 0 ignored

Found while auditing what shipped in 1.0.0-beta.16.

The example on `PartitionSet::pinned` was `ignore`, so it never compiled. It
referenced `prices`, `batch` and `tick` without defining them, which is exactly
why it could not run - and it is the only documentation the API has.

An `ignore` example on a new public method is worse than none: it looks
checked, and it rots silently against the very signature it documents.

Made self-contained and executable - declares a partitioned table, inserts,
then shows the pin-once-read-many shape the surrounding prose argues for.
@pathscale pathscale mentioned this pull request Sep 2, 2026
@pathscale

Copy link
Copy Markdown
Owner Author

Superseded by #87, which carries this commit rebased onto master.

@pathscale pathscale closed this Sep 2, 2026
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