Skip to content

Commit

Permalink
Cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
oscbyspro committed Aug 7, 2024
1 parent 4578c6d commit 76c02cc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Sources/CoreKit/Models/Guarantees/Shift.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

/// Indicates whether the given `value` can be trusted.
///
/// - Returns: `value ∈ 0 up to Value.size`
/// - Returns: `value ∈ 0 up to Target.size`
///
@inlinable public static func predicate(_ value: borrowing Value) -> Bool {
value < Target.size
Expand Down Expand Up @@ -83,7 +83,7 @@

/// Creates a new instance without validation in release mode.
///
/// - Requires: `value ∈ 0 up to Value.size`
/// - Requires: `value ∈ 0 up to Target.size`
///
/// - Warning: Only use this method when you know the `value` is valid.
///
Expand All @@ -95,7 +95,7 @@

/// Creates a new instance by trapping on failure.
///
/// - Requires: `value ∈ 0 up to Value.size`
/// - Requires: `value ∈ 0 up to Target.size`
///
@inlinable public init(_ value: consuming Value) {
precondition(Self.predicate(value), String.brokenInvariant())
Expand All @@ -104,7 +104,7 @@

/// Creates a new instance by returning `nil` on failure.
///
/// - Requires: `value ∈ 0 up to Value.size`
/// - Requires: `value ∈ 0 up to Target.size`
///
@inlinable public init?(exactly value: consuming Value) {
guard Self.predicate(value) else { return nil }
Expand All @@ -113,7 +113,7 @@

/// Creates a new instance by throwing the `error()` on failure.
///
/// - Requires: `value ∈ 0 up to Value.size`
/// - Requires: `value ∈ 0 up to Target.size`
///
@inlinable public init<Failure>(
_ value: consuming Value,
Expand Down

0 comments on commit 76c02cc

Please sign in to comment.