Skip to content

Commit 9e40d53

Browse files
jayvdbhds
authored andcommitted
chore: Fix spelling (#2854)
1 parent ec1aed2 commit 9e40d53

File tree

16 files changed

+26
-26
lines changed

16 files changed

+26
-26
lines changed

tracing-core/src/metadata.rs

+1-1
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

+1-1
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

+2-2
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

+6-6
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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"))]

tracing-subscriber/src/layer/mod.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@
428428
//! callsite). See [`Subscriber::register_callsite`] and
429429
//! [`tracing_core::callsite`] for a summary of how this behaves.
430430
//! - [`enabled`], once per emitted event (roughly: once per time that `event!`
431-
//! or `span!` is *executed*), and only if `register_callsite` regesters an
431+
//! or `span!` is *executed*), and only if `register_callsite` registers an
432432
//! [`Interest::sometimes`]. This is the main customization point to globally
433433
//! filter events based on their [`Metadata`]. If an event can be disabled
434434
//! based only on [`Metadata`], it should be, as this allows the construction
@@ -764,7 +764,7 @@ where
764764
/// [`Subscriber`] has been set as the default, both the `Layer` and
765765
/// [`Subscriber`] are passed to this method _mutably_. This gives the
766766
/// `Layer` the opportunity to set any of its own fields with values
767-
/// recieved by method calls on the [`Subscriber`].
767+
/// received by method calls on the [`Subscriber`].
768768
///
769769
/// For example, [`Filtered`] layers implement `on_layer` to call the
770770
/// [`Subscriber`]'s [`register_filter`] method, and store the returned
@@ -1292,7 +1292,7 @@ feature! {
12921292
/// <pre class="ignore" style="white-space:normal;font:inherit;">
12931293
/// <strong>Note</strong>: If a <code>Filter</code> will perform
12941294
/// <em>dynamic filtering</em> that depends on the current context in which
1295-
/// a span or event was observered (e.g. only enabling an event when it
1295+
/// a span or event was observed (e.g. only enabling an event when it
12961296
/// occurs within a particular span), it <strong>must</strong> return
12971297
/// <code>Interest::sometimes()</code> from this method. If it returns
12981298
/// <code>Interest::always()</code> or <code>Interest::never()</code>, the
@@ -1310,7 +1310,7 @@ feature! {
13101310
/// other hand, when a `Filter` returns [`Interest::always()`][always] or
13111311
/// [`Interest::never()`][never] for a callsite, _other_ [`Layer`]s may have
13121312
/// differing interests in that callsite. If this is the case, the callsite
1313-
/// will recieve [`Interest::sometimes()`][sometimes], and the [`enabled`]
1313+
/// will receive [`Interest::sometimes()`][sometimes], and the [`enabled`]
13141314
/// method will still be called for that callsite when it records a span or
13151315
/// event.
13161316
///

tracing/CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ this release!
651651
filtering, improving performance when a span or event is disabled by a
652652
`static_max_level_XXX` feature flag (#868)
653653
- `LevelFilter` is now a re-export of the `tracing_core::LevelFilter` type, it
654-
can now be used interchangably with the versions in `tracing-core` and
654+
can now be used interchangeably with the versions in `tracing-core` and
655655
`tracing-subscriber` (#853)
656656
- Significant performance improvements when comparing `LevelFilter`s and
657657
`Level`s (#853)

tracing/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ use tracing::{debug, error, info, span, warn, Level};
145145

146146
// the `#[tracing::instrument]` attribute creates and enters a span
147147
// every time the instrumented function is called. The span is named after the
148-
// the function or method. Paramaters passed to the function are recorded as fields.
148+
// the function or method. Parameters passed to the function are recorded as fields.
149149
#[tracing::instrument]
150150
pub fn shave(yak: usize) -> Result<(), Box<dyn Error + 'static>> {
151151
// this creates an event at the DEBUG level with two fields:
@@ -185,7 +185,7 @@ pub fn shave_all(yaks: usize) -> usize {
185185

186186
if let Err(ref error) = res {
187187
// Like spans, events can also use the field initialization shorthand.
188-
// In this instance, `yak` is the field being initalized.
188+
// In this instance, `yak` is the field being initialized.
189189
error!(yak, error = error.as_ref(), "failed to shave yak!");
190190
} else {
191191
yaks_shaved += 1;

tracing/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@
173173
//! For functions which don't have built-in tracing support and can't have
174174
//! the `#[instrument]` attribute applied (such as from an external crate),
175175
//! the [`Span` struct][`Span`] has a [`in_scope()` method][`in_scope`]
176-
//! which can be used to easily wrap synchonous code in a span.
176+
//! which can be used to easily wrap synchronous code in a span.
177177
//!
178178
//! For example:
179179
//! ```rust

tracing/src/macros.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3041,7 +3041,7 @@ macro_rules! fieldset {
30413041
$crate::fieldset!(@ { $($out),*, $k } $($rest)*)
30423042
};
30433043

3044-
// Remainder is unparseable, but exists --- must be format args!
3044+
// Remainder is unparsable, but exists --- must be format args!
30453045
(@ { $(,)* $($out:expr),* } $($rest:tt)+) => {
30463046
$crate::fieldset!(@ { "message", $($out),*, })
30473047
};

tracing/tests/enabled.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ fn span_and_event() {
4343

4444
let _guard = tracing::subscriber::set_default(subscriber);
4545

46-
// Ensure that the `_event` and `_span` alternatives work corretly
46+
// Ensure that the `_event` and `_span` alternatives work correctly
4747
assert!(!tracing::event_enabled!(Level::TRACE));
4848
assert!(tracing::event_enabled!(Level::DEBUG));
4949
assert!(tracing::span_enabled!(Level::TRACE));

0 commit comments

Comments
 (0)