Skip to content

Commit aa799d8

Browse files
Fix doctests
1 parent f95cc95 commit aa799d8

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

crates/tinywasm/src/lib.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -75,22 +75,22 @@
7575
//! For resource-constrained targets, you can configure the initial memory allocation:
7676
//!
7777
//! ```rust
78-
//! use tinywasm::{Store, Module, StackConfig};
78+
//! use tinywasm::{Store, StackConfig};
7979
//!
8080
//! // Create a store with minimal initial allocation (90% reduction in pre-allocated memory)
8181
//! let config = StackConfig::new()
82-
//! .with_value_stack_32_capacity(1024) // 1KB instead of 32KB
83-
//! .with_value_stack_64_capacity(512) // 512B instead of 16KB
84-
//! .with_value_stack_128_capacity(256) // 256B instead of 8KB
85-
//! .with_value_stack_ref_capacity(128) // 128B instead of 1KB
82+
//! .with_value_stack_32_init_size(1024) // 1KB instead of 32KB
83+
//! .with_value_stack_64_init_size(512) // 512B instead of 16KB
84+
//! .with_value_stack_128_init_size(256) // 256B instead of 8KB
85+
//! .with_value_stack_ref_init_size(128) // 128B instead of 1KB
8686
87-
//! .with_block_stack_capacity(32); // 32 instead of 128
88-
//! let mut store = Store::with_config(config);
87+
//! .with_block_stack_init_size(32); // 32 instead of 128
88+
//! let store = Store::with_config(config);
8989
//!
9090
//! // Or create a partial configuration (only override what you need)
9191
//! let config = StackConfig::new()
92-
//! .with_value_stack_32_capacity(2048); // Only override 32-bit stack size
93-
//! let mut store = Store::with_config(config);
92+
//! .with_value_stack_32_init_size(2048); // Only override 32-bit stack size
93+
//! let store = Store::with_config(config);
9494
//! ```
9595
9696
mod std;

0 commit comments

Comments
 (0)