Skip to content

Commit

Permalink
doc(runtime-core) Replace map(|cell| cell.get()) by map(Cell::get).
Browse files Browse the repository at this point in the history
Because it's simpler :-p.
  • Loading branch information
Hywan committed Sep 23, 2019
1 parent 174cc9f commit f289cb2
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 f289cb2

Please sign in to comment.