Permalink
Browse files

Fix README example to use promise API

  • Loading branch information...
1 parent ef26145 commit 00463662cb457f40b3b7224162f454577199eec8 @igorw igorw committed Nov 8, 2012
Showing with 5 additions and 3 deletions.
  1. +5 −3 README.md
View
@@ -22,9 +22,11 @@ The recommended way to install react/whois is [through composer](http://getcompo
<?php
$client = new React\Whois\Client($resolver, $connFactory);
-$client->query('igor.io', function ($result) {
- echo $result;
-});
+$client
+ ->query('igor.io')
+ ->then(function ($result) {
+ echo $result;
+ });
```
## Todo

0 comments on commit 0046366

Please sign in to comment.