From 79a079dc49ed83fe533b425fdb74f3ff548c7469 Mon Sep 17 00:00:00 2001 From: Fernando Paredes Date: Fri, 18 Dec 2015 08:23:47 -0800 Subject: [PATCH] [Examples] Use `isEmpty` instead of manual zero-checking --- Documentation/Examples.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/Examples.md b/Documentation/Examples.md index 3c399643..3d85d351 100644 --- a/Documentation/Examples.md +++ b/Documentation/Examples.md @@ -120,7 +120,7 @@ self.usernameOutlet.rx_text .map { username in // synchronous validation, nothing special here - if count(username) == 0 { + if username.isEmpty { // Convenience for constructing synchronous result. // In case there is mixed synchronous and asychronous code inside the same // method, this will construct an async result that is resolved immediatelly.