From 88256ad9bf289575f0f7f0223eddbaad2804ce6b Mon Sep 17 00:00:00 2001 From: Ed Page Date: Wed, 9 Nov 2022 12:38:54 -0600 Subject: [PATCH] docs: Fix typos --- src/filter/mod.rs | 6 +++--- src/fmt/writer/termcolor/extern_impl.rs | 2 +- src/lib.rs | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/filter/mod.rs b/src/filter/mod.rs index a02d6bc1..721dcb46 100644 --- a/src/filter/mod.rs +++ b/src/filter/mod.rs @@ -762,7 +762,7 @@ mod tests { #[test] fn parse_spec_blank_level_isolated_comma_only() { // The spec should contain zero or more comma-separated string slices, - // so a comma-only string should be interpretted as two empty strings + // so a comma-only string should be interpreted as two empty strings // (which should both be treated as invalid, so ignored). let (dirs, filter) = parse_spec(","); // should be ignored assert_eq!(dirs.len(), 0); @@ -772,7 +772,7 @@ mod tests { #[test] fn parse_spec_blank_level_isolated_comma_blank() { // The spec should contain zero or more comma-separated string slices, - // so this bogus spec should be interpretted as containing one empty + // so this bogus spec should be interpreted as containing one empty // string and one blank string. Both should both be treated as // invalid, so ignored. let (dirs, filter) = parse_spec(", "); // should be ignored @@ -783,7 +783,7 @@ mod tests { #[test] fn parse_spec_blank_level_isolated_blank_comma() { // The spec should contain zero or more comma-separated string slices, - // so this bogus spec should be interpretted as containing one blank + // so this bogus spec should be interpreted as containing one blank // string and one empty string. Both should both be treated as // invalid, so ignored. let (dirs, filter) = parse_spec(" ,"); // should be ignored diff --git a/src/fmt/writer/termcolor/extern_impl.rs b/src/fmt/writer/termcolor/extern_impl.rs index fbe37a77..89c38223 100644 --- a/src/fmt/writer/termcolor/extern_impl.rs +++ b/src/fmt/writer/termcolor/extern_impl.rs @@ -107,7 +107,7 @@ impl BufferWriter { pipe: Box>, ) -> Self { BufferWriter { - // The inner Buffer is never printed from, but it is still needed to handle coloring and other formating + // The inner Buffer is never printed from, but it is still needed to handle coloring and other formatting inner: termcolor::BufferWriter::stderr(write_style.into_color_choice()), uncolored_target: Some(WritableTarget::Pipe(pipe)), } diff --git a/src/lib.rs b/src/lib.rs index 642b731a..c0ee8bd9 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -97,7 +97,7 @@ //! ``` //! //! The log target is typically equal to the path of the module the message -//! in question originated from, though it can be overriden. +//! in question originated from, though it can be overridden. //! //! The path is rooted in the name of the crate it was compiled for, so if //! your program is in a file called, for example, `hello.rs`, the path would @@ -907,7 +907,7 @@ impl Log for Logger { fn log(&self, record: &Record) { if self.matches(record) { // Log records are written to a thread-local buffer before being printed - // to the terminal. We clear these buffers afterwards, but they aren't shrinked + // to the terminal. We clear these buffers afterwards, but they aren't shrunk // so will always at least have capacity for the largest log record formatted // on that thread. //