Skip to content

Commit

Permalink
Fix typo of the FirebaseCore internals (#13324)
Browse files Browse the repository at this point in the history
  • Loading branch information
MojtabaHs authored Jul 20, 2024
1 parent 26f8726 commit 6b74ae7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import Foundation

/// A generic circular queue structure.
struct RingBuffer<Element>: 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<Element?>.Index
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
"""
Expand Down

0 comments on commit 6b74ae7

Please sign in to comment.