Skip to content

Commit 163ac72

Browse files
Box is not as strict as I thought.
1 parent 924e6de commit 163ac72

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Aquifer/X.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import Foundation
1212
import Swiftz
1313

14-
/// The (nominally) empty type, implemented as a strictly self-recursive struct.
14+
/// The (nominally) empty type, implemented as a semi-strictly self-recursive struct.
1515
public struct X {
1616
private let rec: Box<X>
1717

@@ -35,5 +35,5 @@ public func fix<A>(f: (() -> A) -> A) -> A {
3535

3636
/// Bottom is the only (non-`error`) inhabitent of X
3737
public func infiniteLoop() -> X {
38-
return fix { Box($0) }
38+
return fix { X($0) }
3939
}

0 commit comments

Comments
 (0)