Fixed documentation of threadsafe functions
This commit is contained in:
parent
2f084d84c8
commit
74cd9c49c2
1 changed files with 3 additions and 5 deletions
|
@ -45,12 +45,10 @@ pub trait ToJs: Copy + Clone {
|
|||
///
|
||||
/// impl ToJs for HandleNumber {
|
||||
/// type Output = u8;
|
||||
/// type JsValue = JsNumber;
|
||||
///
|
||||
/// fn resolve(&self, env: &mut Env, output: Self::Output) -> Result<(u64, Self::JsValue)> {
|
||||
/// let argv: u64 = 1;
|
||||
/// let value = env.create_uint32(output as u32)?;
|
||||
/// Ok((argv, value))
|
||||
/// fn resolve(&self, env: &mut Env, output: Self::Output) -> Result<Vec<JsUnknown>> {
|
||||
/// let value = env.create_uint32(output as u32)?.into_unknown()?;
|
||||
/// Ok(vec![value])
|
||||
/// }
|
||||
/// }
|
||||
///
|
||||
|
|
Loading…
Reference in a new issue