From 063ddb03b6459f7c2c702412c8ea437806943ae3 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Wed, 18 Mar 2020 14:09:21 -0700 Subject: [PATCH] Move some docs --- crates/api/src/func.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/crates/api/src/func.rs b/crates/api/src/func.rs index 2053a1c8408d..82843d4581a0 100644 --- a/crates/api/src/func.rs +++ b/crates/api/src/func.rs @@ -847,6 +847,11 @@ pub trait IntoFunc { /// [`Func::wrap`], and it can be used to learn information about the caller of /// the function, such as the calling module's memory, exports, etc. /// +/// The primary purpose of this structure is to provide access to the +/// caller's information, such as it's exported memory. This allows +/// functions which take pointers as arguments to easily read the memory the +/// pointers point into. +/// /// Note that this is intended to be a pretty temporary mechanism for accessing /// the caller's memory until interface types has been fully standardized and /// implemented. @@ -858,11 +863,6 @@ pub struct Caller<'a> { impl Caller<'_> { /// Looks up an export from the caller's module by the `name` given. /// - /// The primary purpose of this structure is to provide access to the - /// caller's information, such as it's exported memory. This allows - /// functions which take pointers as arguments to easily read the memory the - /// pointers point into. - /// /// Note that this function is only implemented for the `Extern::Memory` /// type currently. No other exported structure can be acquired through this /// just yet, but this may be implemented in the future!