Skip to content

Commit 4f08512

Browse files
jayvdbhds
authored andcommitted
chore: Fix spelling (#2854)
1 parent a8ae276 commit 4f08512

File tree

16 files changed

+26
-26
lines changed

16 files changed

+26
-26
lines changed

tracing-core/src/metadata.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ impl Kind {
377377
pub const SPAN: Kind = Kind(Self::SPAN_BIT);
378378

379379
/// `enabled!` callsite. [`Subscriber`][`crate::subscriber::Subscriber`]s can assume
380-
/// this `Kind` means they will never recieve a
380+
/// this `Kind` means they will never receive a
381381
/// full event with this [`Metadata`].
382382
pub const HINT: Kind = Kind(Self::HINT_BIT);
383383

tracing-error/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Thanks to @CAD97 for contributing to this release!
3535
- **TracedError**: `TracedError`, an error type wrapper that annotates an error
3636
with the current span.
3737
- **SpanTrace**:`SpanTrace::status` method and `SpanTraceStatus` type for
38-
determing whether a `SpanTrace` was successfully captured (#614)
38+
determining whether a `SpanTrace` was successfully captured (#614)
3939

4040
### Changed
4141

tracing-error/src/error.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ where
7373
// erased `ErrorImpl` back to its original type, which is needed in order to forward our
7474
// error/display/debug impls to the internal error type from the type erased error type.
7575
//
76-
// The repr(C) is necessary to ensure that the struct is layed out in the order we
77-
// specified it so that we can safely access the vtable and spantrace fields thru a type
76+
// The repr(C) is necessary to ensure that the struct is laid out in the order we
77+
// specified it, so that we can safely access the vtable and spantrace fields through a type
7878
// erased pointer to the original object.
7979
let vtable = &ErrorVTable {
8080
object_ref: object_ref::<E>,

tracing-subscriber/CHANGELOG.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -972,7 +972,7 @@ Thanks to @bdonlan and @jeromegn for contributing to this release!
972972
### Changed
973973

974974
- **filter**: `LevelFilter` is now a re-export of the
975-
`tracing_core::LevelFilter` type, it can now be used interchangably with the
975+
`tracing_core::LevelFilter` type, it can now be used interchangeably with the
976976
versions in `tracing` and `tracing-core` (#853)
977977
- **filter**: Significant performance improvements when comparing `LevelFilter`s
978978
and `Level`s (#853)
@@ -1175,7 +1175,7 @@ tuning in this release!
11751175

11761176
- **fmt**: Fixed empty `{}` printed after spans with no fields (f079f2d)
11771177
- **fmt**: Fixed inconsistent formatting when ANSI colors are disabled (506a482)
1178-
- **fmt**: Fixed mis-aligned levels when ANSI colors are disabled (eba1adb)
1178+
- **fmt**: Fixed misaligned levels when ANSI colors are disabled (eba1adb)
11791179
- Fixed warnings on nightly Rust compilers (#558)
11801180

11811181
# 0.2.0-alpha.5 (January 31, 2020)
@@ -1262,9 +1262,9 @@ tuning in this release!
12621262
changes in subsequent alpha. (#420, #425)
12631263
- **BREAKING**: Removed `Filter`. Use `EnvFilter` instead (#434)
12641264

1265-
### Contributers
1265+
### Contributors
12661266

1267-
Thanks to all the contributers to this release!
1267+
Thanks to all the contributors to this release!
12681268

12691269
- @pimeys for #377 and #415
12701270

@@ -1290,9 +1290,9 @@ Thanks to all the contributers to this release!
12901290
order to initialize the global logger. Only `tracing-log` needs to be
12911291
specified now (#400).
12921292

1293-
### Contributers
1293+
### Contributors
12941294

1295-
Thanks to all the contributers to this release!
1295+
Thanks to all the contributors to this release!
12961296

12971297
- @emschwartz for #385, #387, #400 and #401
12981298
- @bIgBV for #388

tracing-subscriber/src/filter/env/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ impl EnvFilter {
479479
let level = metadata.level();
480480

481481
// is it possible for a dynamic filter directive to enable this event?
482-
// if not, we can avoid the thread loca'l access + iterating over the
482+
// if not, we can avoid the thread local access + iterating over the
483483
// spans in the current scope.
484484
if self.has_dynamics && self.dynamics.max_level >= *level {
485485
if metadata.is_span() {

tracing-subscriber/src/filter/filter_fn.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ where
295295
metadata: &'static Metadata<'static>,
296296
) -> Interest {
297297
// Because `self.enabled` takes a `Metadata` only (and no `Context`
298-
// parameter), we can reasonably assume its results are cachable, and
298+
// parameter), we can reasonably assume its results are cacheable, and
299299
// just return `Interest::always`/`Interest::never`.
300300
if (self.enabled)(metadata) {
301301
debug_assert!(

tracing-subscriber/src/filter/layer_filters/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -721,7 +721,7 @@ where
721721
//
722722
// it would be cool if there was some wild rust reflection way of checking
723723
// if a trait impl has the default impl of a trait method or not, but that's
724-
// almsot certainly impossible...right?
724+
// almost certainly impossible...right?
725725

726726
fn register_callsite(&self, metadata: &'static Metadata<'static>) -> Interest {
727727
let interest = self.filter.callsite_enabled(metadata);

tracing-subscriber/src/filter/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ feature! {
3939
pub use self::directive::ParseError;
4040
}
4141

42-
/// Stub implementations of the per-layer-fitler detection functions for when the
42+
/// Stub implementations of the per-layer-filter detection functions for when the
4343
/// `registry` feature is disabled.
4444
#[cfg(not(all(feature = "registry", feature = "std")))]
4545
mod has_plf_stubs {

tracing-subscriber/src/fmt/format/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1829,7 +1829,7 @@ pub(super) mod test {
18291829
"^fake time tracing_subscriber::fmt::format::test: {}:[0-9]+: hello\n$",
18301830
current_path()
18311831
// if we're on Windows, the path might contain backslashes, which
1832-
// have to be escpaed before compiling the regex.
1832+
// have to be escaped before compiling the regex.
18331833
.replace('\\', "\\\\")
18341834
))
18351835
.unwrap();

tracing-subscriber/src/fmt/time/datetime.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ mod tests {
387387
case("1901-12-13T20:45:52.000000Z", i32::MIN as i64, 0);
388388
case("1901-12-13T20:45:51.000000Z", i32::MIN as i64 - 1, 0);
389389

390-
// Skipping these tests on windows as std::time::SysteTime range is low
390+
// Skipping these tests on windows as std::time::SystemTime range is low
391391
// on Windows compared with that of Unix which can cause the following
392392
// high date value tests to panic
393393
#[cfg(not(target_os = "windows"))]

0 commit comments

Comments
 (0)