Skip to content

Commit f1ff331

Browse files
committed
docs: Fix typos
1 parent 66b0fd2 commit f1ff331

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/filter/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,7 @@ mod tests {
762762
#[test]
763763
fn parse_spec_blank_level_isolated_comma_only() {
764764
// The spec should contain zero or more comma-separated string slices,
765-
// so a comma-only string should be interpretted as two empty strings
765+
// so a comma-only string should be interpreted as two empty strings
766766
// (which should both be treated as invalid, so ignored).
767767
let (dirs, filter) = parse_spec(","); // should be ignored
768768
assert_eq!(dirs.len(), 0);
@@ -772,7 +772,7 @@ mod tests {
772772
#[test]
773773
fn parse_spec_blank_level_isolated_comma_blank() {
774774
// The spec should contain zero or more comma-separated string slices,
775-
// so this bogus spec should be interpretted as containing one empty
775+
// so this bogus spec should be interpreted as containing one empty
776776
// string and one blank string. Both should both be treated as
777777
// invalid, so ignored.
778778
let (dirs, filter) = parse_spec(", "); // should be ignored
@@ -783,7 +783,7 @@ mod tests {
783783
#[test]
784784
fn parse_spec_blank_level_isolated_blank_comma() {
785785
// The spec should contain zero or more comma-separated string slices,
786-
// so this bogus spec should be interpretted as containing one blank
786+
// so this bogus spec should be interpreted as containing one blank
787787
// string and one empty string. Both should both be treated as
788788
// invalid, so ignored.
789789
let (dirs, filter) = parse_spec(" ,"); // should be ignored

src/fmt/writer/termcolor/extern_impl.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ impl BufferWriter {
107107
pipe: Box<Mutex<dyn io::Write + Send + 'static>>,
108108
) -> Self {
109109
BufferWriter {
110-
// The inner Buffer is never printed from, but it is still needed to handle coloring and other formating
110+
// The inner Buffer is never printed from, but it is still needed to handle coloring and other formatting
111111
inner: termcolor::BufferWriter::stderr(write_style.into_color_choice()),
112112
uncolored_target: Some(WritableTarget::Pipe(pipe)),
113113
}

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
//! ```
9898
//!
9999
//! The log target is typically equal to the path of the module the message
100-
//! in question originated from, though it can be overriden.
100+
//! in question originated from, though it can be overridden.
101101
//!
102102
//! The path is rooted in the name of the crate it was compiled for, so if
103103
//! your program is in a file called, for example, `hello.rs`, the path would
@@ -907,7 +907,7 @@ impl Log for Logger {
907907
fn log(&self, record: &Record) {
908908
if self.matches(record) {
909909
// Log records are written to a thread-local buffer before being printed
910-
// to the terminal. We clear these buffers afterwards, but they aren't shrinked
910+
// to the terminal. We clear these buffers afterwards, but they aren't shrunk
911911
// so will always at least have capacity for the largest log record formatted
912912
// on that thread.
913913
//

0 commit comments

Comments
 (0)