mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 01:11:10 +00:00
chore: fix some minor issues in the comments (#2106)
Signed-off-by: withtimezone <with_timezone@outlook.com>
This commit is contained in:
@@ -255,7 +255,7 @@ pub struct Json<T>(pub T);
|
||||
|
||||
impl Json<serde_json::Value> {
|
||||
/// Create a [`Json<serde_json::Value>`] from some serializable value.
|
||||
/// Useful when value types are heterogenous.
|
||||
/// Useful when value types are heterogeneous.
|
||||
pub fn value_of<T: serde::Serialize>(item: T) -> Self {
|
||||
Json(serde_json::to_value(item).expect("item cannot be converted to a serde_json::Value"))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user