Skip to content

Commit eed0330

Browse files
authored
Merge pull request #825 from Hywan/doc-runtime-core-memory-view
doc(runtime-core) Replace `map(|cell| cell.get())` by `map(Cell::get)`.
2 parents 23c7b20 + f289cb2 commit eed0330

File tree

1 file changed

+2
-2
lines changed
  • lib/runtime-core/src/memory

1 file changed

+2
-2
lines changed

lib/runtime-core/src/memory/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -131,11 +131,11 @@ impl Memory {
131131
///
132132
/// ```
133133
/// # use wasmer_runtime_core::memory::{Memory, MemoryView};
134-
/// # use std::sync::atomic::Ordering;
134+
/// # use std::{cell::Cell, sync::atomic::Ordering};
135135
/// # fn view_memory(memory: Memory) {
136136
/// // Without synchronization.
137137
/// let view: MemoryView<u8> = memory.view();
138-
/// for byte in view[0x1000 .. 0x1010].iter().map(|cell| cell.get()) {
138+
/// for byte in view[0x1000 .. 0x1010].iter().map(Cell::get) {
139139
/// println!("byte: {}", byte);
140140
/// }
141141
///

0 commit comments

Comments
 (0)