From bb4c7272d8e6102851de5ccbb407b84d7fb681ce Mon Sep 17 00:00:00 2001 From: gopherorg Date: Mon, 13 May 2024 22:22:52 +0800 Subject: [PATCH] chore: fix some typos in comments (#589) Signed-off-by: gopherorg --- backend/telemetry_core/src/main.rs | 2 +- backend/telemetry_shard/src/json_message/hash.rs | 2 +- backend/telemetry_shard/src/real_ip.rs | 2 +- backend/test_utils/src/lib.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/telemetry_core/src/main.rs b/backend/telemetry_core/src/main.rs index 33717f0..32b6d79 100644 --- a/backend/telemetry_core/src/main.rs +++ b/backend/telemetry_core/src/main.rs @@ -45,7 +45,7 @@ const VERSION: &str = env!("CARGO_PKG_VERSION"); const AUTHORS: &str = env!("CARGO_PKG_AUTHORS"); const NAME: &str = "Substrate Telemetry Backend Core"; const ABOUT: &str = "This is the Telemetry Backend Core that receives telemetry messages \ - from Substrate/Polkadot nodes and provides the data to a subsribed feed"; + from Substrate/Polkadot nodes and provides the data to a subscribed feed"; #[derive(StructOpt, Debug)] #[structopt(name = NAME, version = VERSION, author = AUTHORS, about = ABOUT)] diff --git a/backend/telemetry_shard/src/json_message/hash.rs b/backend/telemetry_shard/src/json_message/hash.rs index dd647c9..efd5a7f 100644 --- a/backend/telemetry_shard/src/json_message/hash.rs +++ b/backend/telemetry_shard/src/json_message/hash.rs @@ -50,7 +50,7 @@ impl<'de> Visitor<'de> for HashVisitor { fn expecting(&self, formatter: &mut fmt::Formatter) -> fmt::Result { formatter.write_str( - "byte array of length 32, or hexidecimal string of 32 bytes beginning with 0x", + "byte array of length 32, or hexadecimal string of 32 bytes beginning with 0x", ) } diff --git a/backend/telemetry_shard/src/real_ip.rs b/backend/telemetry_shard/src/real_ip.rs index 416673b..16ac683 100644 --- a/backend/telemetry_shard/src/real_ip.rs +++ b/backend/telemetry_shard/src/real_ip.rs @@ -114,7 +114,7 @@ fn pick_best_ip_from_options( /// Follow to decode the Forwarded header value. /// Roughly, proxies can add new sets of values by appending a comma to the existing list /// (so we have something like "values1, values2, values3" from proxy1, proxy2 and proxy3 for -/// instance) and then the valeus themselves are ';' separated name=value pairs. The value in each +/// instance) and then the values themselves are ';' separated name=value pairs. The value in each /// pair may or may not be surrounded in double quotes. /// /// Examples from the RFC: diff --git a/backend/test_utils/src/lib.rs b/backend/test_utils/src/lib.rs index bf0de0f..b7d3cef 100644 --- a/backend/test_utils/src/lib.rs +++ b/backend/test_utils/src/lib.rs @@ -21,7 +21,7 @@ pub mod server; /// is the slightly-lossy inverse of the custom serialization we do to feed messages. pub mod feed_message_de; -/// A couple of macros to make it easier to test for the presense of things (mainly, feed messages) +/// A couple of macros to make it easier to test for the presence of things (mainly, feed messages) /// in an iterable container. #[macro_use] pub mod contains_matches;