Skip to content

Commit

Permalink
docs: remove callback
Browse files Browse the repository at this point in the history
Since callback argument was changed to async in version 4.0.0.
  • Loading branch information
AliMirlou authored Jan 29, 2020
1 parent 8793199 commit 64615ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ try {

## API

### `lookup(ipfs, ip, callback)`
### `lookup(ipfs, ip)`

Returns a promise that resolves to an object of the form

Expand All @@ -60,7 +60,7 @@ Returns a promise that resolves to an object of the form
}
```

### `lookupPretty(ipfs, multiaddrs, callback)`
### `lookupPretty(ipfs, multiaddrs)`

Provides the same results as `lookup` with the addition of
a `formatted` property that looks like this: `Mountain View, CA, United States, Earth`.
Expand Down

0 comments on commit 64615ef

Please sign in to comment.