Skip to content

Fix jet documentation whitespace#276

Open
schoen wants to merge 4 commits intoBlockstreamResearch:masterfrom
schoen:docs-formatting
Open

Fix jet documentation whitespace#276
schoen wants to merge 4 commits intoBlockstreamResearch:masterfrom
schoen:docs-formatting

Conversation

@schoen
Copy link
Copy Markdown
Contributor

@schoen schoen commented Apr 6, 2026

Some whitespace edits in the jet documentation.

@schoen schoen requested a review from delta1 as a code owner April 6, 2026 19:11
@schoen schoen force-pushed the docs-formatting branch from d3fd9a6 to 1034473 Compare April 6, 2026 19:50
Comment thread src/docs/jet.rs Outdated
Elements::FullRightShift64_16 => "Helper for right-shifting bits. The bits are shifted from a 16-bit value into a 64-bit value. Return the shifted value and the 16 bits that were shifted out.",
Elements::FullRightShift64_32 => "Helper for right-shifting bits. The bits are shifted from a 32-bit value into a 64-bit value. Return the shifted value and the 32 bits that were shifted out.",
Elements::High1 => "Return `u1::MAX` = 1.",
Elements::High1 => "Return [`u1::MAX`] = 1.",
Copy link
Copy Markdown
Collaborator

@KyrylR KyrylR Apr 7, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

    Checking either v1.13.0
 Documenting simplicityhl-as-rust v0.2.0 (/private/tmp/SimplicityHL-as-rust)
error: unresolved link to `u1::MAX`
   --> src/jet/multi_bit_logic.rs:561:14
    |
561 | /// Return [`u1::MAX`] = 1.
    |              ^^^^^^^ the struct `u1` has no field or associated item named `MAX`
    |
    = note: requested on the command line with `-D rustdoc::broken-intra-doc-links`

error: unresolved link to `u1::MIN`
    --> src/jet/multi_bit_logic.rs:1146:14
     |
1146 | /// Return [`u1::MIN`] = 0.
     |              ^^^^^^^ the struct `u1` has no field or associated item named `MIN`

error: could not document `simplicityhl-as-rust`

Command: RUSTDOCFLAGS='-D rustdoc::broken_intra_doc_links' cargo doc --no-deps

Maybe it is better just to remove u1::MAX? same for min

@schoen
Copy link
Copy Markdown
Contributor Author

schoen commented Apr 20, 2026

@KyrylR Thank you for catching that problem. I would like to regularize the ::MIN and ::MAX stuff to ideally make them (1) available in SimplicityHL itself, and (2) available for every type.

See also #252

However, I should not let the documentation erroneously get ahead of the code here! So I added a commit to revert that reference for u1.

@schoen
Copy link
Copy Markdown
Contributor Author

schoen commented Apr 20, 2026

Sorry, I realize I'll also have to sign these commits.

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.

3 participants