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

Signed-off-by: withtimezone <with_timezone@outlook.com>
This commit is contained in:
withtimezone authored and GitHub committed 2025-10-20 12:18:21 +01:00
1 parent 884dfe6c69
commit 2ec9c2e57c
3 files changed
+3 -3

No files matched your search

+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"))
}