shashi1687 opened PR #11200 from shashi1687:docs/default-value-comments-10437 to bytecodealliance:main:
Discussion:
This change addresses issue #10437, where it was noted that thedefault_valuehelper methods lacked API documentation.Why this change is needed:
Adding these doc comments ensures the public API forGlobalType::default_value,TableType::default_value, andMemoryType::default_valueis fully documented in the generated docs, improving discoverability and clarity for users.
What this PR does:
- Adds a brief
///doc comment to each of the three helper methods incrates/wasmtime/src/runtime/types.rs:
GlobalType::default_valueTableType::default_valueMemoryType::default_valueChecklist:
- [x] Ran
cargo fmt -- --check- [x] Ran
cargo test -p wasmtimeCloses #10437.
shashi1687 requested alexcrichton for a review on PR #11200.
shashi1687 requested wasmtime-core-reviewers for a review on PR #11200.
shashi1687 updated PR #11200.
shashi1687 updated PR #11200.
pchickey submitted PR review.
pchickey merged PR #11200.
Last updated: Dec 06 2025 at 07:03 UTC