Skip to content

Commit

Permalink
Added public docstrings to Result custom string convertible protocols.
Browse files Browse the repository at this point in the history
  • Loading branch information
cnoon committed Sep 19, 2015
1 parent 8a6ee84 commit 8759805
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Source/Result.swift
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ public enum Result<Value, Error: ErrorType> {
// MARK: - CustomStringConvertible

extension Result: CustomStringConvertible {
/// The textual representation used when written to an output stream, which includes whether the result was a
/// success or failure.
public var description: String {
switch self {
case .Success:
Expand All @@ -86,6 +88,8 @@ extension Result: CustomStringConvertible {
// MARK: - CustomDebugStringConvertible

extension Result: CustomDebugStringConvertible {
/// The debug textual representation used when written to an output stream, which includes whether the result was a
/// success or failure in addition to the value or error.
public var debugDescription: String {
switch self {
case .Success(let value):
Expand Down

0 comments on commit 8759805

Please sign in to comment.