mirror of
https://github.com/tokio-rs/tracing.git
synced 2025-10-02 15:24:47 +00:00
Fix typos. (#128)
This commit is contained in:
parent
6f6cbb634e
commit
9936b55a61
@ -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
|
||||
|
@ -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 {
|
||||
|
@ -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.
|
||||
|
@ -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.
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user