Skip to content

Commit

Permalink
doc(runtime-core) Fix inline documentations.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hywan committed Nov 6, 2019
1 parent c73becd commit 2216a83
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/runtime-core/src/typed_func.rs
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ macro_rules! impl_traits {
let func: &FN = match func_env {
// The imported function is a regular
// function, a closure without a captured
// environmet, or a closure with a captured
// environment, or a closure with a captured
// environment.
Some(func_env) => unsafe {
let func: NonNull<FN> = func_env.cast();
Expand Down Expand Up @@ -566,7 +566,7 @@ macro_rules! impl_traits {
NonNull::new(&self as *const _ as *mut vm::FuncEnv)
}
// `FN` is a closure _with_ a captured
// environment. Grab it.
// environment.
else {
NonNull::new(Box::into_raw(Box::new(self))).map(NonNull::cast)
};
Expand Down Expand Up @@ -615,7 +615,7 @@ macro_rules! impl_traits {
let func: &FN = match func_env {
// The imported function is a regular
// function, a closure without a captured
// environmet, or a closure with a captured
// environment, or a closure with a captured
// environment.
Some(func_env) => unsafe {
let func: NonNull<FN> = func_env.cast();
Expand Down Expand Up @@ -659,7 +659,7 @@ macro_rules! impl_traits {
NonNull::new(&self as *const _ as *mut vm::FuncEnv)
}
// `FN` is a closure _with_ a captured
// environment. Grab it.
// environment.
else {
NonNull::new(Box::into_raw(Box::new(self))).map(NonNull::cast)
};
Expand Down

0 comments on commit 2216a83

Please sign in to comment.