Fix spellcheck for benchmarking comments (#14535)

* Benchmarking spellcheck fix

Put everything that could cause spellcheck issues into backticks.

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Also in templates

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* ".git/.scripts/commands/bench/bench.sh" pallet dev pallet-balances

---------

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Co-authored-by: command-bot <>
This commit is contained in:
Oliver Tale-Yazdi
2023-07-07 17:33:17 +02:00
committed by GitHub
parent d3ef2badcb
commit 53244d64bd
4 changed files with 85 additions and 87 deletions
@@ -666,7 +666,7 @@ pub(crate) fn process_storage_results(
match key_info {
Some(key_info) => {
let comment = format!(
"Storage: {} {} (r:{} w:{})",
"Storage: `{}::{}` (r:{} w:{})",
String::from_utf8(key_info.pallet_name.clone())
.expect("encoded from string"),
String::from_utf8(key_info.storage_name.clone())
@@ -678,7 +678,7 @@ pub(crate) fn process_storage_results(
},
None => {
let comment = format!(
"Storage: unknown `0x{}` (r:{} w:{})",
"Storage: UNKNOWN KEY `0x{}` (r:{} w:{})",
HexDisplay::from(key),
reads,
writes,
@@ -700,7 +700,7 @@ pub(crate) fn process_storage_results(
) {
Some(new_pov) => {
let comment = format!(
"Proof: {} {} (max_values: {:?}, max_size: {:?}, added: {}, mode: {:?})",
"Proof: `{}::{}` (`max_values`: {:?}, `max_size`: {:?}, added: {}, mode: `{:?}`)",
String::from_utf8(key_info.pallet_name.clone())
.expect("encoded from string"),
String::from_utf8(key_info.storage_name.clone())
@@ -718,7 +718,7 @@ pub(crate) fn process_storage_results(
let item = String::from_utf8(key_info.storage_name.clone())
.expect("encoded from string");
let comment = format!(
"Proof Skipped: {} {} (max_values: {:?}, max_size: {:?}, mode: {:?})",
"Proof: `{}::{}` (`max_values`: {:?}, `max_size`: {:?}, mode: `{:?}`)",
pallet, item, key_info.max_values, key_info.max_size,
used_pov_mode,
);
@@ -728,7 +728,7 @@ pub(crate) fn process_storage_results(
},
None => {
let comment = format!(
"Proof Skipped: unknown `0x{}` (r:{} w:{})",
"Proof: UNKNOWN KEY `0x{}` (r:{} w:{})",
HexDisplay::from(key),
reads,
writes,