Fix typos. (#128)

This commit is contained in:
Bruce Mitchener 2019-07-02 00:14:14 +07:00 committed by Eliza Weisman
parent 6f6cbb634e
commit 9936b55a61
9 changed files with 11 additions and 11 deletions

View File

@ -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 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 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 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. not just having good code.
### Abandoned or Stalled Pull Requests ### Abandoned or Stalled Pull Requests

View File

@ -74,7 +74,7 @@ pub trait Subscriber: 'static {
/// that subscriber returns `Interest::always` from `register_callsite`, then /// that subscriber returns `Interest::always` from `register_callsite`, then
/// the filter will not be re-evaluated once it has been applied to a given /// 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 /// 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 /// `Subscriber`s that need to change their filters occasionally should call
/// [`rebuild_interest_cache`] to re-evaluate `register_callsite` for all /// [`rebuild_interest_cache`] to re-evaluate `register_callsite` for all

View File

@ -8,8 +8,8 @@ use tracing_core::{
#[test] #[test]
fn metadata_macro_api() { fn metadata_macro_api() {
// This test should catch any inadvertant breaking changes // This test should catch any inadvertent breaking changes
// caused bu changes to the macro. // caused by changes to the macro.
struct TestCallsite; struct TestCallsite;
impl Callsite for TestCallsite { impl Callsite for TestCallsite {

View File

@ -2,7 +2,7 @@
//! subscriber. //! subscriber.
//! //!
//! This subscriber implements a tree-structured logger similar to //! 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]. //! example output in the screenshot in the [`slog` README].
//! //!
//! Note that this logger isn't ready for actual production use. //! Note that this logger isn't ready for actual production use.

View File

@ -2,7 +2,7 @@
//! subscriber. //! subscriber.
//! //!
//! This subscriber implements a tree-structured logger similar to //! 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]. //! example output in the screenshot in the [`slog` README].
//! //!
//! Note that this logger isn't ready for actual production use. //! Note that this logger isn't ready for actual production use.

View File

@ -2,7 +2,7 @@
// can't exist in the same file with other tests that add subscribers to the // 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 // 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 // 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] #[macro_use]
extern crate tracing; extern crate tracing;

View File

@ -2,7 +2,7 @@
// cant exist in the same file with other tests that add subscribers to the // 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 // 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 // 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] #[macro_use]
extern crate tracing; extern crate tracing;

View File

@ -2,7 +2,7 @@
// cant exist in the same file with other tests that add subscribers to the // 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 // 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 // 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] #[macro_use]
extern crate tracing; extern crate tracing;

View File

@ -689,8 +689,8 @@ fn field_shorthand_only() {
#[test] #[test]
fn callsite_macro_api() { fn callsite_macro_api() {
// This test should catch any inadvertant breaking changes // This test should catch any inadvertent breaking changes
// caused bu changes to the macro. // caused by changes to the macro.
let _callsite = callsite! { let _callsite = callsite! {
name: "test callsite", name: "test callsite",
kind: tracing::metadata::Kind::EVENT, kind: tracing::metadata::Kind::EVENT,