Skip to content

Commit

Permalink
fix: Minor fix in error message about ShardUId (near#10898)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
tayfunelmas authored Mar 29, 2024
1 parent 6f607a2 commit 895b9c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/primitives/src/shard_layout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
}

Expand Down

0 comments on commit 895b9c0

Please sign in to comment.