Skip to content

chore: fix README usage example - #29

Open
iAmMichaelConnor wants to merge 1 commit into
mike/05-fix-empty-arraysfrom
mike/06-docs-readme-usage
Open

iAmMichaelConnor wants to merge 1 commit into
mike/05-fix-empty-arraysfrom
mike/06-docs-readme-usage

Conversation

@iAmMichaelConnor

Copy link
Copy Markdown
Contributor

Stacked on #28; please review and merge in order.

What

The README usage example did not compile: it used Field indices (the API takes u32), an
undefined nonzero_indices in the mutable example, array.ser, and was missing a semicolon.
Fix those, with otherwise the same example.

Testing

The example functions were compiled in a consumer crate against this branch with Noir 1.0.0;
the immutable example passes, and the mutable example's final set fails with
"MutSparseArray::set exceeded maximum size of array", as its comment says.

@iAmMichaelConnor iAmMichaelConnor changed the title docs: fix README usage example chore: fix README usage example Nov 2, 2026
@iAmMichaelConnor
iAmMichaelConnor force-pushed the mike/06-docs-readme-usage branch from 7d4ccbf to f6ee7cf Compare November 2, 2026 18:16
The example used Field indices (the API takes u32), an undefined
variable, a misspelled `set` and a missing semicolon.
@TomAFrench
TomAFrench force-pushed the mike/06-docs-readme-usage branch from f6ee7cf to 0bd6df8 Compare November 3, 2026 03:53
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