Merge pull request #534 from garnett/fix-inline-doc-typos
Fix grammar errors and add some dots.
This commit is contained in:
commit
7168dba9ec
|
|
@ -34,11 +34,11 @@ public enum RxError
|
|||
*/
|
||||
case ArgumentOutOfRange
|
||||
/**
|
||||
Sequence doesn't contain any element.
|
||||
Sequence doesn't contain any elements.
|
||||
*/
|
||||
case NoElements
|
||||
/**
|
||||
Sequence contains more then one element.
|
||||
Sequence contains more than one element.
|
||||
*/
|
||||
case MoreThanOneElement
|
||||
/**
|
||||
|
|
@ -62,11 +62,11 @@ public extension RxError {
|
|||
case .ArgumentOutOfRange:
|
||||
return "Argument out of range."
|
||||
case .NoElements:
|
||||
return "Sequence doesn't contain any element."
|
||||
return "Sequence doesn't contain any elements."
|
||||
case .MoreThanOneElement:
|
||||
return "Sequence contains more then one element."
|
||||
return "Sequence contains more than one element."
|
||||
case .Timeout:
|
||||
return "Sequence timeout"
|
||||
return "Sequence timeout."
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -31,7 +31,7 @@ extension ObservableType {
|
|||
- parameter onError: Action to invoke upon errored termination of the observable sequence.
|
||||
- parameter onCompleted: Action to invoke upon graceful termination of the observable sequence.
|
||||
- parameter onDisposed: Action to invoke upon any type of termination of sequence (if the sequence has
|
||||
gracefully completed, errored, or if the generation is cancelled by disposing subscription)
|
||||
gracefully completed, errored, or if the generation is cancelled by disposing subscription).
|
||||
- returns: Subscription object used to unsubscribe from the observable sequence.
|
||||
*/
|
||||
@warn_unused_result(message="http://git.io/rxs.ud")
|
||||
|
|
@ -119,7 +119,7 @@ extension ObservableType {
|
|||
|
||||
public extension ObservableType {
|
||||
/**
|
||||
All internal subscribe calls go through this method
|
||||
All internal subscribe calls go through this method.
|
||||
*/
|
||||
@warn_unused_result(message="http://git.io/rxs.ud")
|
||||
func subscribeSafe<O: ObserverType where O.E == E>(observer: O) -> Disposable {
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ public protocol ObservableType : ObservableConvertibleType {
|
|||
**Next\* (Error | Completed)?**
|
||||
|
||||
* sequences can produce zero or more elements so zero or more `Next` events can be sent to `observer`
|
||||
* once an `Error` or `Completed` event is sent, the sequence terminates and can't produce any other element
|
||||
* once an `Error` or `Completed` event is sent, the sequence terminates and can't produce any other elements
|
||||
|
||||
It is possible that events are sent from different threads, but no two events can be sent concurrently to
|
||||
`observer`.
|
||||
|
|
|
|||
Loading…
Reference in New Issue