From 895b9c0264525a187e6f5e43c4e2a3296024fb14 Mon Sep 17 00:00:00 2001 From: tayfunelmas Date: Fri, 29 Mar 2024 08:11:30 -0700 Subject: [PATCH] fix: Minor fix in error message about ShardUId (#10898) String format of ShardUId is "sX.vY" with dot in between. Also give v3 as the example as it is the current version to use. --- core/primitives/src/shard_layout.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/primitives/src/shard_layout.rs b/core/primitives/src/shard_layout.rs index 9fc2f22965d..b8ecb68a9c0 100644 --- a/core/primitives/src/shard_layout.rs +++ b/core/primitives/src/shard_layout.rs @@ -429,7 +429,7 @@ impl<'de> serde::de::Visitor<'de> for ShardUIdVisitor { fn expecting(&self, formatter: &mut fmt::Formatter) -> fmt::Result { write!( formatter, - "either string format of `ShardUId` like s0v1 for shard 0 version 1, or a map" + "either string format of `ShardUId` like 's0.v3' for shard 0 version 3, or a map" ) }