mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-03-28 07:51:07 +00:00
Merge pull request #1073 from daxpedda/patch-1
Fix typo in "wasm_bindgen::JsCast" trait docs
This commit is contained in:
commit
46f70d3630
@ -30,7 +30,7 @@ where
|
|||||||
/// Performs a dynamic cast (checked at runtime) of this value into the
|
/// Performs a dynamic cast (checked at runtime) of this value into the
|
||||||
/// target type `T`.
|
/// target type `T`.
|
||||||
///
|
///
|
||||||
/// This method will return `Err(self)` is `self.is_instance_of::<T>()`
|
/// This method will return `Err(self)` if `self.is_instance_of::<T>()`
|
||||||
/// returns `false`, and otherwise it will return `Ok(T)` manufactured with
|
/// returns `false`, and otherwise it will return `Ok(T)` manufactured with
|
||||||
/// an unchecked cast (verified correct via the `instanceof` operation).
|
/// an unchecked cast (verified correct via the `instanceof` operation).
|
||||||
fn dyn_into<T>(self) -> Result<T, Self>
|
fn dyn_into<T>(self) -> Result<T, Self>
|
||||||
@ -47,7 +47,7 @@ where
|
|||||||
/// Performs a dynamic cast (checked at runtime) of this value into the
|
/// Performs a dynamic cast (checked at runtime) of this value into the
|
||||||
/// target type `T`.
|
/// target type `T`.
|
||||||
///
|
///
|
||||||
/// This method will return `None` is `self.is_instance_of::<T>()`
|
/// This method will return `None` if `self.is_instance_of::<T>()`
|
||||||
/// returns `false`, and otherwise it will return `Some(&T)` manufactured
|
/// returns `false`, and otherwise it will return `Some(&T)` manufactured
|
||||||
/// with an unchecked cast (verified correct via the `instanceof` operation).
|
/// with an unchecked cast (verified correct via the `instanceof` operation).
|
||||||
fn dyn_ref<T>(&self) -> Option<&T>
|
fn dyn_ref<T>(&self) -> Option<&T>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user