diff --git a/sentry-core/src/hub_impl.rs b/sentry-core/src/hub_impl.rs index 76a91c3d..1a2de2cd 100644 --- a/sentry-core/src/hub_impl.rs +++ b/sentry-core/src/hub_impl.rs @@ -162,7 +162,7 @@ impl Hub { /// will return the provided hub. /// /// Once the function is finished executing, including after it - /// paniced, the original hub is re-installed if one was present. + /// panicked, the original hub is re-installed if one was present. pub fn run R, R>(hub: Arc, f: F) -> R { let _guard = SwitchGuard::new(hub); f() diff --git a/sentry-core/src/performance.rs b/sentry-core/src/performance.rs index a0046d30..08c33936 100644 --- a/sentry-core/src/performance.rs +++ b/sentry-core/src/performance.rs @@ -367,7 +367,7 @@ pub(crate) struct TransactionInner { type TransactionArc = Arc>; -/// Functional implementation of how a new transation's sample rate is chosen. +/// Functional implementation of how a new transaction's sample rate is chosen. /// /// Split out from `Client.is_transaction_sampled` for testing. #[cfg(feature = "client")] diff --git a/sentry-core/src/scope/real.rs b/sentry-core/src/scope/real.rs index f38ed52d..47dec48d 100644 --- a/sentry-core/src/scope/real.rs +++ b/sentry-core/src/scope/real.rs @@ -134,7 +134,7 @@ impl Drop for ScopeGuard { stack.pop(); popped_depth }; - // NOTE: We need to drop the `stack` lock before panicing, as the + // NOTE: We need to drop the `stack` lock before panicking, as the // `PanicIntegration` will want to lock the `stack` itself // (through `capture_event` -> `HubImpl::with`), and would thus // result in a deadlock. diff --git a/sentry-types/README.md b/sentry-types/README.md index 556fd3b3..286b44d6 100644 --- a/sentry-types/README.md +++ b/sentry-types/README.md @@ -7,7 +7,7 @@ # Sentry Rust SDK: sentry-types This crate provides common types for working with the Sentry protocol or the -Sentry server. It's used by the Sentry Relay infrastructure as well as the +Sentry server. It's used by the Sentry Relay infrastructure as well as the rust Sentry client. Most of the types in this crate are serializable in one form or another. @@ -26,7 +26,7 @@ so later versions might be added later. ### API Concepts Most types are directly serializable or deserializable and try to implement -the `Default` type. This means that objects can be created conviently +the `Default` type. This means that objects can be created conviently and missing attributes can be filled in: ```rust diff --git a/sentry-types/src/lib.rs b/sentry-types/src/lib.rs index 321e1088..7f662ca9 100644 --- a/sentry-types/src/lib.rs +++ b/sentry-types/src/lib.rs @@ -18,7 +18,7 @@ //! ## API Concepts //! //! Most types are directly serializable or deserializable and try to implement -//! the `Default` type. This means that objects can be created conviently +//! the `Default` type. This means that objects can be created conveniently //! and missing attributes can be filled in: //! //! ```rust diff --git a/sentry-types/src/protocol/session.rs b/sentry-types/src/protocol/session.rs index f0feffff..43ea9fc3 100644 --- a/sentry-types/src/protocol/session.rs +++ b/sentry-types/src/protocol/session.rs @@ -127,7 +127,7 @@ pub struct SessionUpdate<'a> { #[serde(default)] pub status: SessionStatus, - /// The number of errors that ocurred. + /// The number of errors that occurred. #[serde(default)] pub errors: u64, @@ -150,16 +150,16 @@ pub struct SessionAggregateItem { /// The distinct identifier. #[serde(rename = "did", default, skip_serializing_if = "Option::is_none")] pub distinct_id: Option, - /// The number of exited sessions that ocurred. + /// The number of exited sessions that occurred. #[serde(default, skip_serializing_if = "is_zero")] pub exited: u32, - /// The number of errored sessions that ocurred, not including the abnormal and crashed ones. + /// The number of errored sessions that occurred, not including the abnormal and crashed ones. #[serde(default, skip_serializing_if = "is_zero")] pub errored: u32, - /// The number of abnormal sessions that ocurred. + /// The number of abnormal sessions that occurred. #[serde(default, skip_serializing_if = "is_zero")] pub abnormal: u32, - /// The number of crashed sessions that ocurred. + /// The number of crashed sessions that occurred. #[serde(default, skip_serializing_if = "is_zero")] pub crashed: u32, } diff --git a/sentry-types/src/protocol/v7.rs b/sentry-types/src/protocol/v7.rs index 2aa3e0e1..a2f22800 100644 --- a/sentry-types/src/protocol/v7.rs +++ b/sentry-types/src/protocol/v7.rs @@ -782,7 +782,7 @@ impl Default for Breadcrumb { /// An IP address, either IPv4, IPv6 or Auto. #[derive(Debug, Clone, Copy, PartialEq, Eq, Ord, PartialOrd, Hash, Default)] pub enum IpAddress { - /// The IP address needs to be infered from the user's context. + /// The IP address needs to be inferred from the user's context. #[default] Auto, /// The exact given IP address (v4 or v6). @@ -1595,7 +1595,7 @@ pub struct Event<'a> { /// A release identifier. #[serde(default, skip_serializing_if = "Option::is_none")] pub release: Option>, - /// An optional distribution identifer. + /// An optional distribution identifier. #[serde(default, skip_serializing_if = "Option::is_none")] pub dist: Option>, /// An optional environment identifier.