Skip to content

Commit

Permalink
More documentation tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
davedelong committed Feb 15, 2024
1 parent c7c85da commit ced2dcd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Sources/Time/10-Relations/Relations.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import Foundation
/// There are 13 possible ways in which two values may be related to each other.
/// This set of possibilities is entirely encapsulated by the `Relation` enum.
///
/// - See Also: [Allen's Interval Algebra](https://en.wikipedia.org/wiki/Allen%27s_interval_algebra)
/// - SeeAlso: [Allen's Interval Algebra](https://en.wikipedia.org/wiki/Allen%27s_interval_algebra)
public enum Relation: Hashable, CaseIterable {

internal static let meetings: Set<Relation> = [.meets, .isMetBy, .starts, .isStartedBy, .finishes, .isFinishedBy]
Expand Down
4 changes: 2 additions & 2 deletions Sources/Time/3-RegionalClock/RegionalClock+Chimes.swift
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ extension RegionalClock {
/// Sets up a single chime (ex: "at 12:00 PM").
///
/// Useful, for example, when you want the `RegionalClock` to "tell me when it's 3:00 PM."
/// If the time has already passed, then the publisher completes immediately without sending a value.
/// If the time has already passed, then the `ClockChime` completes immediately without sending a value.
///
/// - Parameter time: The time at which the chime should occur.
///
Expand Down Expand Up @@ -139,7 +139,7 @@ public struct ClockChime<U: Unit & LTOEEra> {
/// Create a chime that emits at most one value at the specified time.
/// - Parameters:
/// - clock: The `RegionalClock` to use for producing calendar values.
/// - time: The time at which to emit the value. If this value is in the past, then the publisher immediately completes.
/// - time: The time at which to emit the value. If this value is in the past, then the `ClockChime` emits no values.
public init(clock: any RegionalClock, at time: Fixed<U>) {
let current = clock.current(U.self)
var values = Array<Fixed<U>>()
Expand Down

0 comments on commit ced2dcd

Please sign in to comment.