Skip to content

Commit

Permalink
chore: fix some typos in comments (#589)
Browse files Browse the repository at this point in the history
Signed-off-by: gopherorg <gopherworld@icloud.com>
  • Loading branch information
gopherorg committed May 13, 2024
1 parent e2a17cb commit bb4c727
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion backend/telemetry_core/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down
2 changes: 1 addition & 1 deletion backend/telemetry_shard/src/json_message/hash.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
)
}

Expand Down
2 changes: 1 addition & 1 deletion backend/telemetry_shard/src/real_ip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ fn pick_best_ip_from_options(
/// Follow <https://datatracker.ietf.org/doc/html/rfc7239> 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:
Expand Down
2 changes: 1 addition & 1 deletion backend/test_utils/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit bb4c727

Please sign in to comment.