diff --git a/README.md b/README.md index 53c164baa3..a7eae2f3fe 100644 --- a/README.md +++ b/README.md @@ -129,7 +129,7 @@ use std::{error::Error, io}; use tracing::{debug, error, info, span, warn, Level}; // the `#[tracing::instrument]` attribute creates and enters a span -// every time the instrumented function is called. The span is named after the +// every time the instrumented function is called. The span is named after // the function or method. Parameters passed to the function are recorded as fields. #[tracing::instrument] pub fn shave(yak: usize) -> Result<(), Box> { diff --git a/examples/examples/fmt/yak_shave.rs b/examples/examples/fmt/yak_shave.rs index 9f6eb477b3..e5d7f53862 100644 --- a/examples/examples/fmt/yak_shave.rs +++ b/examples/examples/fmt/yak_shave.rs @@ -4,7 +4,7 @@ use thiserror::Error; use tracing::{debug, error, info, span, trace, warn, Level}; // the `#[tracing::instrument]` attribute creates and enters a span -// every time the instrumented function is called. The span is named after the +// every time the instrumented function is called. The span is named after // the function or method. Paramaters passed to the function are recorded as fields. #[tracing::instrument] pub fn shave(yak: usize) -> Result<(), Box> { @@ -47,7 +47,7 @@ pub fn shave_all(yaks: usize) -> usize { if let Err(ref error) = res { // Like spans, events can also use the field initialization shorthand. - // In this instance, `yak` is the field being initalized. + // In this instance, `yak` is the field being initialized. error!(yak, error = error.as_ref(), "failed to shave yak"); } else { yaks_shaved += 1; diff --git a/tracing-appender/src/inner.rs b/tracing-appender/src/inner.rs index 9c9a74c45f..1c40eeaae8 100644 --- a/tracing-appender/src/inner.rs +++ b/tracing-appender/src/inner.rs @@ -76,7 +76,7 @@ impl InnerAppender { } fn should_rollover(&self, date: OffsetDateTime) -> bool { - // the `None` case means that the `InnerAppender` *never* rorates log files. + // the `None` case means that the `InnerAppender` *never* rotates log files. match self.next_date { None => false, Some(next_date) => date >= next_date, diff --git a/tracing/README.md b/tracing/README.md index c0207988df..ac5bfe0375 100644 --- a/tracing/README.md +++ b/tracing/README.md @@ -144,7 +144,7 @@ use std::{error::Error, io}; use tracing::{debug, error, info, span, warn, Level}; // the `#[tracing::instrument]` attribute creates and enters a span -// every time the instrumented function is called. The span is named after the +// every time the instrumented function is called. The span is named after // the function or method. Paramaters passed to the function are recorded as fields. #[tracing::instrument] pub fn shave(yak: usize) -> Result<(), Box> { diff --git a/tracing/src/lib.rs b/tracing/src/lib.rs index ac4c7a3650..0a8293fa14 100644 --- a/tracing/src/lib.rs +++ b/tracing/src/lib.rs @@ -482,7 +482,7 @@ //! use tracing::{debug, error, info, span, warn, Level}; //! //! // the `#[tracing::instrument]` attribute creates and enters a span -//! // every time the instrumented function is called. The span is named after the +//! // every time the instrumented function is called. The span is named after //! // the function or method. Parameters passed to the function are recorded as fields. //! #[tracing::instrument] //! pub fn shave(yak: usize) -> Result<(), Box> { @@ -524,7 +524,7 @@ //! //! if let Err(ref error) = res { //! // Like spans, events can also use the field initialization shorthand. -//! // In this instance, `yak` is the field being initalized. +//! // In this instance, `yak` is the field being initialized. //! error!(yak, error = error.as_ref(), "failed to shave yak!"); //! } else { //! yaks_shaved += 1; diff --git a/tracing/src/span.rs b/tracing/src/span.rs index 73113f14f1..09b56a2bc0 100644 --- a/tracing/src/span.rs +++ b/tracing/src/span.rs @@ -915,7 +915,7 @@ impl Span { /// ``` /// /// If the current [collector] enables the [`DEBUG`] level, then both - /// the "parent" and "child" spans will be enabled. Thus, when the "spawaned + /// the "parent" and "child" spans will be enabled. Thus, when the "spawned /// a thread!" event occurs, it will be inside of the "child" span. Because /// "parent" is the parent of "child", the event will _also_ be inside of /// "parent".