From 9936b55a61bdfdc7aa568510cab2b875ba9871c5 Mon Sep 17 00:00:00 2001 From: Bruce Mitchener Date: Tue, 2 Jul 2019 00:14:14 +0700 Subject: [PATCH] Fix typos. (#128) --- CONTRIBUTING.md | 2 +- tracing-core/src/subscriber.rs | 2 +- tracing-core/tests/macros.rs | 4 ++-- tracing/examples/sloggish/main.rs | 2 +- tracing/examples/sloggish/sloggish_subscriber.rs | 2 +- tracing/tests/filter_caching_is_lexically_scoped.rs | 2 +- .../tests/filters_are_not_reevaluated_for_the_same_span.rs | 2 +- .../tests/filters_are_reevaluated_for_different_call_sites.rs | 2 +- tracing/tests/macros.rs | 4 ++-- 9 files changed, 11 insertions(+), 11 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 58f384ea..cccfc0f9 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -362,7 +362,7 @@ with the appropriate reason to keep the conversation flow concise and relevant. Be aware that *how* you communicate requests and reviews in your feedback can have a significant impact on the success of the Pull Request. Yes, we may land a particular change that makes `tracing` better, but the individual might -just notwant to have anything to do with `tracing` ever again. The goal is +just not want to have anything to do with `tracing` ever again. The goal is not just having good code. ### Abandoned or Stalled Pull Requests diff --git a/tracing-core/src/subscriber.rs b/tracing-core/src/subscriber.rs index f72f9753..bc18e908 100644 --- a/tracing-core/src/subscriber.rs +++ b/tracing-core/src/subscriber.rs @@ -74,7 +74,7 @@ pub trait Subscriber: 'static { /// that subscriber returns `Interest::always` from `register_callsite`, then /// the filter will not be re-evaluated once it has been applied to a given /// set of metadata. Thus, the counter will not be incremented, and the span - /// or event that correspands to the metadata will never be `enabled`. + /// or event that corresponds to the metadata will never be `enabled`. /// /// `Subscriber`s that need to change their filters occasionally should call /// [`rebuild_interest_cache`] to re-evaluate `register_callsite` for all diff --git a/tracing-core/tests/macros.rs b/tracing-core/tests/macros.rs index 3676eb3f..e472a23f 100644 --- a/tracing-core/tests/macros.rs +++ b/tracing-core/tests/macros.rs @@ -8,8 +8,8 @@ use tracing_core::{ #[test] fn metadata_macro_api() { - // This test should catch any inadvertant breaking changes - // caused bu changes to the macro. + // This test should catch any inadvertent breaking changes + // caused by changes to the macro. struct TestCallsite; impl Callsite for TestCallsite { diff --git a/tracing/examples/sloggish/main.rs b/tracing/examples/sloggish/main.rs index db9ff230..4631cedb 100644 --- a/tracing/examples/sloggish/main.rs +++ b/tracing/examples/sloggish/main.rs @@ -2,7 +2,7 @@ //! subscriber. //! //! This subscriber implements a tree-structured logger similar to -//! the "compact" formatter in [`slog-term`]. The demo mimicks the +//! the "compact" formatter in [`slog-term`]. The demo mimics the //! example output in the screenshot in the [`slog` README]. //! //! Note that this logger isn't ready for actual production use. diff --git a/tracing/examples/sloggish/sloggish_subscriber.rs b/tracing/examples/sloggish/sloggish_subscriber.rs index c82cf7d7..7a484b4b 100644 --- a/tracing/examples/sloggish/sloggish_subscriber.rs +++ b/tracing/examples/sloggish/sloggish_subscriber.rs @@ -2,7 +2,7 @@ //! subscriber. //! //! This subscriber implements a tree-structured logger similar to -//! the "compact" formatter in [`slog-term`]. The demo mimicks the +//! the "compact" formatter in [`slog-term`]. The demo mimics the //! example output in the screenshot in the [`slog` README]. //! //! Note that this logger isn't ready for actual production use. diff --git a/tracing/tests/filter_caching_is_lexically_scoped.rs b/tracing/tests/filter_caching_is_lexically_scoped.rs index 30a9fda8..d09bde15 100644 --- a/tracing/tests/filter_caching_is_lexically_scoped.rs +++ b/tracing/tests/filter_caching_is_lexically_scoped.rs @@ -2,7 +2,7 @@ // can't exist in the same file with other tests that add subscribers to the // registry. The registry was changed so that each time a new dispatcher is // added all filters are re-evaluated. The tests being run only in separate -// threads with shared global state lets them interfere with eachother +// threads with shared global state lets them interfere with each other #[macro_use] extern crate tracing; diff --git a/tracing/tests/filters_are_not_reevaluated_for_the_same_span.rs b/tracing/tests/filters_are_not_reevaluated_for_the_same_span.rs index 5eb8945f..4954a2af 100644 --- a/tracing/tests/filters_are_not_reevaluated_for_the_same_span.rs +++ b/tracing/tests/filters_are_not_reevaluated_for_the_same_span.rs @@ -2,7 +2,7 @@ // cant exist in the same file with other tests that add subscribers to the // registry. The registry was changed so that each time a new dispatcher is // added all filters are re-evaluated. The tests being run only in separate -// threads with shared global state lets them interfere with eachother +// threads with shared global state lets them interfere with each other #[macro_use] extern crate tracing; diff --git a/tracing/tests/filters_are_reevaluated_for_different_call_sites.rs b/tracing/tests/filters_are_reevaluated_for_different_call_sites.rs index 69c96cb1..9d26ae1b 100644 --- a/tracing/tests/filters_are_reevaluated_for_different_call_sites.rs +++ b/tracing/tests/filters_are_reevaluated_for_different_call_sites.rs @@ -2,7 +2,7 @@ // cant exist in the same file with other tests that add subscribers to the // registry. The registry was changed so that each time a new dispatcher is // added all filters are re-evaluated. The tests being run only in separate -// threads with shared global state lets them interfere with eachother +// threads with shared global state lets them interfere with each other #[macro_use] extern crate tracing; diff --git a/tracing/tests/macros.rs b/tracing/tests/macros.rs index 098f0b07..35c3a82e 100644 --- a/tracing/tests/macros.rs +++ b/tracing/tests/macros.rs @@ -689,8 +689,8 @@ fn field_shorthand_only() { #[test] fn callsite_macro_api() { - // This test should catch any inadvertant breaking changes - // caused bu changes to the macro. + // This test should catch any inadvertent breaking changes + // caused by changes to the macro. let _callsite = callsite! { name: "test callsite", kind: tracing::metadata::Kind::EVENT,