Skip to content

docs: correct P2ID note count and loop range in mint tutorial - #212

Open
memosr wants to merge 1 commit into
0xMiden:mainfrom
memosr:fix/mint-consume-note-count
Open

docs: correct P2ID note count and loop range in mint tutorial#212
memosr wants to merge 1 commit into
0xMiden:mainfrom
memosr:fix/mint-consume-note-count

Conversation

@memosr

@memosr memosr commented Aug 8, 2026

Copy link
Copy Markdown

The paragraph introducing the multi-note output snippet describes five notes
over 0..=4, but the code creates four notes over 1..=4.

Three sources in the repo already agree on four:

  • rust-client/src/bin/create_mint_consume_send.rs prints
    Submitted a transaction with 4 P2ID notes
  • the code fence further down this same file uses 1..=4
  • line 140 of this same file already says "the first four P2ID transfers are
    handled in a single transaction, and the fifth transfer is a standard P2ID
    transfer"

So the paragraph contradicted both the code below it and the prose six lines
above it. This aligns the wording with all three.

Text-only change, no code touched. cargo test --doc in docs/ passes
(17 passed, 0 failed). Ran prettier --write per CONTRIBUTING.md; the line
was already conformant.

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