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
@@ -60,7 +60,7 @@ impl<'atblock> AnyStorageInfo<'atblock> {
Ok(info)
}
/// Is the storage entry a map (ie something we'd provide extra keys to to access a value, or otherwise iterate over)?
/// Is the storage entry a map (ie something we'd provide extra keys to access a value, or otherwise iterate over)?
pub fn is_map(&self) -> bool {
match self {
AnyStorageInfo::Legacy(info) => !info.info.keys.is_empty(),
+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"))
}
@@ -32,7 +32,7 @@ async fn fetch_finalized_blocks<T: Config>(
.subscribe_finalized()
.await
.expect("issue subscribing to finalized in fetch_finalized_blocks")
.skip(1) // <- skip first block incase next is close to being ready already.
.skip(1) // <- skip first block in case next is close to being ready already.
.take(n)
.map(|r| r.expect("issue fetching block in fetch_finalized_blocks"))
}