Skip to content

Commit

Permalink
Merge pull request ReactiveX#1671 from twittemb/fix/driveDocumentation
Browse files Browse the repository at this point in the history
Fix documentation for drive function
  • Loading branch information
freak4pc authored Jun 14, 2018
2 parents faeb158 + 76eb80a commit 98d5230
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions RxCocoa/Traits/Driver/Driver+Subscription.swift
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ extension SharedSequenceConvertibleType where SharingStrategy == DriverSharingSt
Creates new subscription and sends elements to `BehaviorRelay`.
This method can be only called from `MainThread`.
- parameter variable: Target variable for sequence elements.
- returns: Disposable object that can be used to unsubscribe the observer from the variable.
- parameter relay: Target relay for sequence elements.
- returns: Disposable object that can be used to unsubscribe the observer from the relay.
*/
public func drive(_ relay: BehaviorRelay<E>) -> Disposable {
MainScheduler.ensureExecutingOnScheduler(errorMessage: errorMessage)
Expand All @@ -55,11 +55,11 @@ extension SharedSequenceConvertibleType where SharingStrategy == DriverSharingSt
}

/**
Creates new subscription and sends elements to variable.
Creates new subscription and sends elements to `BehaviorRelay`.
This method can be only called from `MainThread`.
- parameter variable: Target variable for sequence elements.
- returns: Disposable object that can be used to unsubscribe the observer from the variable.
- parameter relay: Target relay for sequence elements.
- returns: Disposable object that can be used to unsubscribe the observer from the relay.
*/
public func drive(_ relay: BehaviorRelay<E?>) -> Disposable {
MainScheduler.ensureExecutingOnScheduler(errorMessage: errorMessage)
Expand Down

0 comments on commit 98d5230

Please sign in to comment.