Skip to content

Commit

Permalink
Merge pull request #825 from Hywan/doc-runtime-core-memory-view
Browse files Browse the repository at this point in the history
doc(runtime-core) Replace `map(|cell| cell.get())` by `map(Cell::get)`.
  • Loading branch information
syrusakbary authored Sep 23, 2019
2 parents 23c7b20 + f289cb2 commit eed0330
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/runtime-core/src/memory/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,11 @@ impl Memory {
///
/// ```
/// # use wasmer_runtime_core::memory::{Memory, MemoryView};
/// # use std::sync::atomic::Ordering;
/// # use std::{cell::Cell, sync::atomic::Ordering};
/// # fn view_memory(memory: Memory) {
/// // Without synchronization.
/// let view: MemoryView<u8> = memory.view();
/// for byte in view[0x1000 .. 0x1010].iter().map(|cell| cell.get()) {
/// for byte in view[0x1000 .. 0x1010].iter().map(Cell::get) {
/// println!("byte: {}", byte);
/// }
///
Expand Down

0 comments on commit eed0330

Please sign in to comment.