Changes some texts.

This commit is contained in:
Krunoslav Zaher 2015-11-11 10:12:11 +01:00
parent 6866b44e06
commit 45d1aa6047
2 changed files with 9 additions and 9 deletions

View File

@ -152,7 +152,7 @@ extension BlockingObservable {
If sequence terminates with error before producing first element, terminating error will be thrown.
- returns: Returns the only element of an sequence, and reports an exception if there is not exactly one element in the observable sequence.
- returns: Returns the only element of an sequence, and reports an error if there is not exactly one element in the observable sequence.
*/
public func single() throws -> E? {
var element: E?

View File

@ -34,11 +34,11 @@ public enum RxError
*/
case ArgumentOutOfRange
/**
No elements sent to a sequence requiring at least one.
Sequence doesn't contain any element.
*/
case NoElements
/**
More elements sent to a sequence expecting only one.
Sequence contains more then one element.
*/
case MoreThanOneElement
}
@ -50,17 +50,17 @@ public extension RxError {
public var debugDescription: String {
switch self {
case .Unknown:
return "Unknown error occured"
return "Unknown error occured."
case .Disposed(let object):
return "Object `\(object)` was already disposed"
return "Object `\(object)` was already disposed."
case .Overflow:
return "Arithmetic overflow occured"
return "Arithmetic overflow occured."
case .ArgumentOutOfRange:
return "Argument out of range"
return "Argument out of range."
case .NoElements:
return "No element sent to a sequence requiring at least one"
return "Sequence doesn't contain any element."
case .MoreThanOneElement:
return "More elements sent to a sequence expecting only one"
return "Sequence contains more then one element."
}
}
}