Skip to content

Commit fb150f2

Browse files
authored
Merge pull request #252 from ChrisJohns-me/patch-1
`fromAsync` - Minior doc fix [#trivial ]
2 parents d25dd7b + 040630c commit fb150f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Source/RxSwift/fromAsync.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ extension Observable {
1313

1414
/**
1515
Transforms an async function that returns data through a completionHandler in a function that returns data through an Observable
16-
- The returned function will thake the same arguments than asyncRequest, minus the last one
16+
- The returned function will take the same arguments as asyncRequest, minus the last one
1717
*/
1818
public static func fromAsync(_ asyncRequest: @escaping (@escaping (Element) -> Void) -> Void) -> Observable<Element> {
1919
return Observable.create({ (o) -> Disposable in
@@ -75,7 +75,7 @@ public enum FromAsyncError: Error {
7575
public extension PrimitiveSequenceType where Trait == SingleTrait {
7676
/**
7777
Transforms an async function that returns data or error through a completionHandler in a function that returns data through a Single
78-
- The returned function will thake the same arguments than asyncRequest, minus the last one
78+
- The returned function will take the same arguments as asyncRequest, minus the last one
7979
*/
8080
static func fromAsync<Er: Error>(_ asyncRequest: @escaping (@escaping (Element?, Er?) -> Void) -> Void) -> Single<Element> {
8181
return .create { single in

0 commit comments

Comments
 (0)