Skip to content

Commit

Permalink
CustomStringConvertible.
Browse files Browse the repository at this point in the history
  • Loading branch information
robrix committed Jun 10, 2015
1 parent f152f11 commit e633c97
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Box/Box.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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<T>: BoxType, Printable {
public final class Box<T>: BoxType, CustomStringConvertible {
/// Initializes a `Box` with the given value.
public init(_ value: T) {
self.value = value
Expand Down
2 changes: 1 addition & 1 deletion Box/MutableBox.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/// While this, like `Box<T>` 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<T>` will suffice where any `BoxType` is needed.
public final class MutableBox<T>: MutableBoxType, Printable {
public final class MutableBox<T>: MutableBoxType, CustomStringConvertible {
/// Initializes a `MutableBox` with the given value.
public init(_ value: T) {
self.value = value
Expand Down

0 comments on commit e633c97

Please sign in to comment.