From 462f4a753b980af62073908d9f62b36bc8516887 Mon Sep 17 00:00:00 2001 From: nghialv Date: Thu, 4 Jun 2015 23:59:51 +0900 Subject: [PATCH] update Readme --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a6400a6..cde95b4 100644 --- a/README.md +++ b/README.md @@ -81,8 +81,10 @@ Usage ``` swift let e = NSError(domain: "noSuchElement", code: 1, userInfo: nil) - -let f = searchRepositories("Hakuba").filter(e){ $0.count > 0 } <^> { $0.first!.ownerName } >>- requestUser +let f1 = searchRepositories("Hakuba") + +let f = f1.filter(e){ $0.count > 0 } <^> { $0.first!.ownerName } >>- requestUser + f.onComplete { result in switch result { case .Success(let user): println(user)