From e633c9740bac2bf152217d31fad9fa0886d4835a Mon Sep 17 00:00:00 2001 From: Rob Rix Date: Tue, 9 Jun 2015 20:04:55 -0400 Subject: [PATCH] CustomStringConvertible. --- Box/Box.swift | 2 +- Box/MutableBox.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Box/Box.swift b/Box/Box.swift index e9a919e..0fb0da5 100644 --- a/Box/Box.swift +++ b/Box/Box.swift @@ -3,7 +3,7 @@ /// Wraps a type `T` in a reference type. /// /// Typically this is used to work around limitations of value types (for example, the lack of codegen for recursive value types and type-parameterized enums with >1 case). It is also useful for sharing a single (presumably large) value without copying it. -public final class Box: BoxType, Printable { +public final class Box: BoxType, CustomStringConvertible { /// Initializes a `Box` with the given value. public init(_ value: T) { self.value = value diff --git a/Box/MutableBox.swift b/Box/MutableBox.swift index db52089..0e434b6 100644 --- a/Box/MutableBox.swift +++ b/Box/MutableBox.swift @@ -5,7 +5,7 @@ /// While this, like `Box` could be used to work around limitations of value types, it is much more useful for sharing a single mutable value such that mutations are shared. /// /// As with all mutable state, this should be used carefully, for example as an optimization, rather than a default design choice. Most of the time, `Box` will suffice where any `BoxType` is needed. -public final class MutableBox: MutableBoxType, Printable { +public final class MutableBox: MutableBoxType, CustomStringConvertible { /// Initializes a `MutableBox` with the given value. public init(_ value: T) { self.value = value