Skip to content

docs: add NatSpec @notice to public functions#860

Merged
zerosnacks merged 2 commits into
foundry-rs:masterfrom
mablr:docs/natspec-public-functions
May 13, 2026
Merged

docs: add NatSpec @notice to public functions#860
zerosnacks merged 2 commits into
foundry-rs:masterfrom
mablr:docs/natspec-public-functions

Conversation

@mablr
Copy link
Copy Markdown
Contributor

@mablr mablr commented May 13, 2026

Towards #653

Adds @notice tags to all public-facing and internal functions enabling forge doc to autogenerate reference documentation for the Foundry Book. No function signatures or behavior changed.

Adds @notice tags to all public-facing and internal functions enabling
forge doc to autogenerate reference documentation for the
Foundry Book. No function signatures or behavior changed.
Copy link
Copy Markdown

@figtracer figtracer left a comment

Choose a reason for hiding this comment

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

lg

- StdChains.getChain: document revert conditions
- StdCheats.expectAndMockCall (gas overloads): clarify that gas only
  applies to the call expectation, not the mock
- StdCheats.deployCodeTo: document vm.etch-based deployment semantics
  and constructor side-effect caveats
- StdCheats.noGasMetering: note that nested usage only resumes metering
  at the outermost call
- stdStorageSafe.findOffsets: document the returned 'found' bool
- stdStorageSafe.read_bool: note the revert when value is not 0/1
- stdToml.serialize: clarify JSON-in-memory + TOML-on-write semantics

Amp-Thread-ID: https://ampcode.com/threads/T-019e207d-61e2-7644-94cb-9a8861834bb5
Co-authored-by: Amp <amp@ampcode.com>
@zerosnacks zerosnacks merged commit 84ab71a into foundry-rs:master May 13, 2026
20 checks passed
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