chore: fix some minor issues in the comments (#2106)

Signed-off-by: withtimezone <with_timezone@outlook.com>
This commit is contained in:
withtimezone
2025-10-20 19:18:21 +08:00
committed by GitHub
parent 884dfe6c69
commit 2ec9c2e57c
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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"))
}