We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f748b49 commit 8cf3724Copy full SHA for 8cf3724
crates/utils/src/format/json.rs
@@ -29,7 +29,8 @@ pub trait JsValueSerdeExt: private::Sealed {
29
/// use gloo_utils::format::JsValueSerdeExt;
30
///
31
/// # fn no_run() {
32
- /// assert_eq!(JsValue::from("bar").into_serde::<String>().unwrap(), "bar");
+ /// let array = vec![1,2,3];
33
+ /// let obj = JsValue::from_serde(&array);
34
/// # }
35
/// ```
36
/// # Errors
@@ -63,8 +64,7 @@ pub trait JsValueSerdeExt: private::Sealed {
63
64
65
66
- /// let array = vec![1,2,3];
67
- /// let obj = JsValue::from_serde(&array);
+ /// assert_eq!(JsValue::from("bar").into_serde::<String>().unwrap(), "bar");
68
69
70
0 commit comments