mirror of
https://github.com/ReactiveX/RxSwift.git
synced 2024-10-06 06:57:43 +03:00
Changes some texts.
This commit is contained in:
parent
6866b44e06
commit
45d1aa6047
@ -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?
|
||||
|
@ -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."
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user