diff --git a/FirebaseCore/Internal/Sources/HeartbeatLogging/HeartbeatController.swift b/FirebaseCore/Internal/Sources/HeartbeatLogging/HeartbeatController.swift index 20a021db4a1..7fa7c298053 100644 --- a/FirebaseCore/Internal/Sources/HeartbeatLogging/HeartbeatController.swift +++ b/FirebaseCore/Internal/Sources/HeartbeatLogging/HeartbeatController.swift @@ -22,7 +22,7 @@ public final class HeartbeatController { private let heartbeatsStorageCapacity: Int = 30 /// Current date provider. It is used for testability. private let dateProvider: () -> Date - /// Used for standardizing dates for calendar-day comparision. + /// Used for standardizing dates for calendar-day comparison. static let dateStandardizer: (Date) -> (Date) = { var calendar = Calendar(identifier: .iso8601) calendar.locale = Locale(identifier: "en_US_POSIX") diff --git a/FirebaseCore/Internal/Sources/HeartbeatLogging/HeartbeatsBundle.swift b/FirebaseCore/Internal/Sources/HeartbeatLogging/HeartbeatsBundle.swift index 776dfb8ddbc..a6e258e8870 100644 --- a/FirebaseCore/Internal/Sources/HeartbeatLogging/HeartbeatsBundle.swift +++ b/FirebaseCore/Internal/Sources/HeartbeatLogging/HeartbeatsBundle.swift @@ -45,7 +45,7 @@ struct HeartbeatsBundle: Codable, HeartbeatsPayloadConvertible { /// Designated initializer. /// - Parameters: - /// - capacity: The heartbeat capacity of the inititialized collection. + /// - capacity: The heartbeat capacity of the initialized collection. /// - cache: A cache of time periods mapping to dates. Defaults to using static `cacheProvider`. init(capacity: Int, cache: [TimePeriod: Date] = cacheProvider()) { diff --git a/FirebaseCore/Internal/Sources/HeartbeatLogging/RingBuffer.swift b/FirebaseCore/Internal/Sources/HeartbeatLogging/RingBuffer.swift index 6ba8c339733..7269c4dd803 100644 --- a/FirebaseCore/Internal/Sources/HeartbeatLogging/RingBuffer.swift +++ b/FirebaseCore/Internal/Sources/HeartbeatLogging/RingBuffer.swift @@ -16,7 +16,7 @@ import Foundation /// A generic circular queue structure. struct RingBuffer: Sequence { - /// An array of heartbeats treated as a circular queue and intialized with a fixed capacity. + /// An array of heartbeats treated as a circular queue and initialized with a fixed capacity. private var circularQueue: [Element?] /// The current "tail" and insert point for the `circularQueue`. private var tailIndex: Array.Index diff --git a/FirebaseCore/Internal/Tests/Unit/HeartbeatControllerTests.swift b/FirebaseCore/Internal/Tests/Unit/HeartbeatControllerTests.swift index 37fd335235d..25bd02cfa70 100644 --- a/FirebaseCore/Internal/Tests/Unit/HeartbeatControllerTests.swift +++ b/FirebaseCore/Internal/Tests/Unit/HeartbeatControllerTests.swift @@ -191,7 +191,7 @@ class HeartbeatControllerTests: XCTestCase { let payload = heartbeatController.flush() // Then - // Note below how the date was intepreted as UTC - 2021-11-02. + // Note below how the date was interpreted as UTC - 2021-11-02. try HeartbeatLoggingTestUtils.assertEqualPayloadStrings( payload.headerValue(), """