Skip to content

Commit 335380a

Browse files
authored
chore: Fix spelling (#2854)
1 parent d4ca988 commit 335380a

File tree

18 files changed

+28
-28
lines changed

18 files changed

+28
-28
lines changed

examples/examples/fmt/yak_shave.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use tracing::{debug, error, info, span, trace, warn, Level};
55

66
// the `#[tracing::instrument]` attribute creates and enters a span
77
// every time the instrumented function is called. The span is named after
8-
// the function or method. Paramaters passed to the function are recorded as fields.
8+
// the function or method. Parameters passed to the function are recorded as fields.
99
#[tracing::instrument]
1010
pub fn shave(yak: usize) -> Result<(), Box<dyn Error + Send + Sync + 'static>> {
1111
// this creates an event at the TRACE log level with two fields:

tracing-core/src/metadata.rs

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

380380
/// `enabled!` callsite. [`Collect`][`crate::collect::Collect`]s can assume
381-
/// this `Kind` means they will never recieve a
381+
/// this `Kind` means they will never receive a
382382
/// full event with this [`Metadata`].
383383
pub const HINT: Kind = Kind(Self::HINT_BIT);
384384

tracing-error/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
- **TracedError**: `TracedError`, an error type wrapper that annotates an error
66
with the current span.
77
- **SpanTrace**:`SpanTrace::status` method and `SpanTraceStatus` type for
8-
determing whether a `SpanTrace` was successfully captured (#614)
8+
determining whether a `SpanTrace` was successfully captured (#614)
99

1010
### Changed
1111

tracing-error/src/error.rs

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

tracing-mock/src/subscriber.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//! An implementation of the [`Subscribe`] trait which validates that
2-
//! the `tracing` data it recieves matches the expected output for a test.
2+
//! the `tracing` data it receives matches the expected output for a test.
33
//!
44
//!
55
//! The [`MockSubscriber`] is the central component in these tools. The

tracing-subscriber/CHANGELOG.md

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

5959
- **filter**: `LevelFilter` is now a re-export of the
60-
`tracing_core::LevelFilter` type, it can now be used interchangably with the
60+
`tracing_core::LevelFilter` type, it can now be used interchangeably with the
6161
versions in `tracing` and `tracing-core` (#853)
6262
- **filter**: Significant performance improvements when comparing `LevelFilter`s
6363
and `Level`s (#853)
@@ -260,7 +260,7 @@ tuning in this release!
260260

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

266266
# 0.2.0-alpha.5 (January 31, 2020)
@@ -347,9 +347,9 @@ tuning in this release!
347347
changes in subsequent alpha. (#420, #425)
348348
- **BREAKING**: Removed `Filter`. Use `EnvFilter` instead (#434)
349349

350-
### Contributers
350+
### Contributors
351351

352-
Thanks to all the contributers to this release!
352+
Thanks to all the contributors to this release!
353353

354354
- @pimeys for #377 and #415
355355

@@ -375,9 +375,9 @@ Thanks to all the contributers to this release!
375375
order to initialize the global logger. Only `tracing-log` needs to be
376376
specified now (#400).
377377

378-
### Contributers
378+
### Contributors
379379

380-
Thanks to all the contributers to this release!
380+
Thanks to all the contributors to this release!
381381

382382
- @emschwartz for #385, #387, #400 and #401
383383
- @bIgBV for #388

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

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

478478
// is it possible for a dynamic filter directive to enable this event?
479-
// if not, we can avoid the thread loca'l access + iterating over the
479+
// if not, we can avoid the thread local access + iterating over the
480480
// spans in the current scope.
481481
if self.has_dynamics && self.dynamics.max_level >= *level {
482482
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/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ feature! {
4242
pub use self::directive::ParseError;
4343
}
4444

45-
/// Stub implementations of the per-subscriber-fitler detection functions for
45+
/// Stub implementations of the per-subscriber-filter detection functions for
4646
/// when the `registry` feature is disabled.
4747
#[cfg(not(all(feature = "registry", feature = "std")))]
4848
mod has_psf_stubs {

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

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

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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1748,7 +1748,7 @@ pub(super) mod test {
17481748
"^fake time tracing_subscriber::fmt::format::test: {}:[0-9]+: hello\n$",
17491749
current_path()
17501750
// if we're on Windows, the path might contain backslashes, which
1751-
// have to be escpaed before compiling the regex.
1751+
// have to be escaped before compiling the regex.
17521752
.replace('\\', "\\\\")
17531753
))
17541754
.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"))]

tracing-subscriber/src/subscribe/mod.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@
430430
//! callsite). See [`Collect::register_callsite`] and
431431
//! [`tracing_core::callsite`] for a summary of how this behaves.
432432
//! - [`enabled`], once per emitted event (roughly: once per time that `event!`
433-
//! or `span!` is *executed*), and only if `register_callsite` regesters an
433+
//! or `span!` is *executed*), and only if `register_callsite` registers an
434434
//! [`Interest::sometimes`]. This is the main customization point to globally
435435
//! filter events based on their [`Metadata`]. If an event can be disabled
436436
//! based only on [`Metadata`], it should be, as this allows the construction
@@ -768,7 +768,7 @@ where
768768
/// [`Collect`] has been set as the default, both the subscriber and
769769
/// [`Collect`] are passed to this method _mutably_. This gives the
770770
/// subscribe the opportunity to set any of its own fields with values
771-
/// recieved by method calls on the [`Collect`].
771+
/// received by method calls on the [`Collect`].
772772
///
773773
/// For example, [`Filtered`] subscribers implement `on_subscribe` to call the
774774
/// [`Collect`]'s [`register_filter`] method, and store the returned
@@ -900,7 +900,7 @@ where
900900
///
901901
/// **Note**: This method determines whether an event is globally enabled,
902902
/// *not* whether the individual subscriber will be notified about the
903-
/// event. This is intended to be used by subscibers that implement
903+
/// event. This is intended to be used by subscribers that implement
904904
/// filtering for the entire stack. Subscribers which do not wish to be
905905
/// notified about certain events but do not wish to globally disable them
906906
/// should ignore those events in their [on_event][Self::on_event].
@@ -1287,7 +1287,7 @@ pub trait Filter<S> {
12871287
/// <pre class="ignore" style="white-space:normal;font:inherit;">
12881288
/// <strong>Note</strong>: If a <code>Filter</code> will perform
12891289
/// <em>dynamic filtering</em> that depends on the current context in which
1290-
/// a span or event was observered (e.g. only enabling an event when it
1290+
/// a span or event was observed (e.g. only enabling an event when it
12911291
/// occurs within a particular span), it <strong>must</strong> return
12921292
/// <code>Interest::sometimes()</code> from this method. If it returns
12931293
/// <code>Interest::always()</code> or <code>Interest::never()</code>, the
@@ -1306,7 +1306,7 @@ pub trait Filter<S> {
13061306
/// other hand, when a `Filter` returns [`Interest::always()`][always] or
13071307
/// [`Interest::never()`][never] for a callsite, _other_ [`Subscribe`]s may have
13081308
/// differing interests in that callsite. If this is the case, the callsite
1309-
/// will recieve [`Interest::sometimes()`][sometimes], and the [`enabled`]
1309+
/// will receive [`Interest::sometimes()`][sometimes], and the [`enabled`]
13101310
/// method will still be called for that callsite when it records a span or
13111311
/// event.
13121312
///

tracing/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ this release!
7878
filtering, improving performance when a span or event is disabled by a
7979
`static_max_level_XXX` feature flag (#868)
8080
- `LevelFilter` is now a re-export of the `tracing_core::LevelFilter` type, it
81-
can now be used interchangably with the versions in `tracing-core` and
81+
can now be used interchangeably with the versions in `tracing-core` and
8282
`tracing-subscriber` (#853)
8383
- Significant performance improvements when comparing `LevelFilter`s and
8484
`Level`s (#853)

tracing/README.md

Lines changed: 2 additions & 2 deletions
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
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:
@@ -186,7 +186,7 @@ pub fn shave_all(yaks: usize) -> usize {
186186

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

tracing/src/lib.rs

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3044,7 +3044,7 @@ macro_rules! fieldset {
30443044
$crate::fieldset!(@ { $($out),*, $k } $($rest)*)
30453045
};
30463046

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

tracing/tests/enabled.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ fn span_and_event() {
4646

4747
let _guard = tracing::collect::set_default(collector);
4848

49-
// Ensure that the `_event` and `_span` alternatives work corretly
49+
// Ensure that the `_event` and `_span` alternatives work correctly
5050
assert!(!tracing::event_enabled!(Level::TRACE));
5151
assert!(tracing::event_enabled!(Level::DEBUG));
5252
assert!(tracing::span_enabled!(Level::TRACE));

0 commit comments

Comments
 (0)