Skip to content

Commit 8027e54

Browse files
committed
Lint warnings
1 parent fee95ed commit 8027e54

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

Sources/Atoms/AsyncPhase.swift

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ public enum AsyncPhase<Success, Failure: Error> {
2424
}
2525
}
2626

27-
/// Creates a new phase by evaluating a async throwing closure, capturing the
28-
/// returned value as a success, or any thrown error as a failure.
29-
///
30-
/// - Parameter body: A async throwing closure to evaluate.
3127
#if compiler(>=6)
28+
/// Creates a new phase by evaluating a async throwing closure, capturing the
29+
/// returned value as a success, or thrown error as a failure.
30+
///
31+
/// - Parameter body: A async throwing closure to evaluate.
3232
public init(catching body: @Sendable () async throws(Failure) -> Success) async {
3333
do {
3434
let value = try await body()
@@ -39,6 +39,10 @@ public enum AsyncPhase<Success, Failure: Error> {
3939
}
4040
}
4141
#else
42+
/// Creates a new phase by evaluating a async throwing closure, capturing the
43+
/// returned value as a success, or thrown error as a failure.
44+
///
45+
/// - Parameter body: A async throwing closure to evaluate.
4246
public init(catching body: @Sendable () async throws -> Success) async where Failure == Error {
4347
do {
4448
let value = try await body()

0 commit comments

Comments
 (0)