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

@ -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

View File

@ -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 {

View File

@ -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.

View File

@ -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.

View File

@ -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,