chore: fix some typos in comments (#589)

Signed-off-by: gopherorg <gopherworld@icloud.com>
This commit is contained in:
gopherorg
2024-05-13 22:22:52 +08:00
committed by GitHub
parent e2a17cb945
commit bb4c7272d8
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -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)]
@@ -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",
)
}
+1 -1
View File
@@ -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:
+1 -1
View File
@@ -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;