We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 23c7b20 + f289cb2 commit eed0330Copy full SHA for eed0330
lib/runtime-core/src/memory/mod.rs
@@ -131,11 +131,11 @@ impl Memory {
131
///
132
/// ```
133
/// # use wasmer_runtime_core::memory::{Memory, MemoryView};
134
- /// # use std::sync::atomic::Ordering;
+ /// # use std::{cell::Cell, sync::atomic::Ordering};
135
/// # fn view_memory(memory: Memory) {
136
/// // Without synchronization.
137
/// let view: MemoryView<u8> = memory.view();
138
- /// for byte in view[0x1000 .. 0x1010].iter().map(|cell| cell.get()) {
+ /// for byte in view[0x1000 .. 0x1010].iter().map(Cell::get) {
139
/// println!("byte: {}", byte);
140
/// }
141
0 commit comments