Skip to content

Commit f670325

Browse files
author
hicom150
committed
Fix small typos in the readme example
1 parent 231aed2 commit f670325

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ To connect to a tracker, just do this:
3535
```js
3636
var Client = require('bittorrent-tracker').Client
3737
var parseTorrent = require('parse-torrent')
38+
var fs = require('fs')
3839

3940
var torrent = fs.readFileSync(__dirname + '/torrents/bitlove-intro.torrent')
4041
var parsedTorrent = parseTorrent(torrent) // { infoHash: 'xxx', length: xx, announce: ['xx', 'xx'] }
@@ -73,7 +74,7 @@ client.update()
7374
client.stop()
7475

7576
// scrape
76-
client.scape()
77+
client.scrape()
7778

7879
client.on('scrape', function (data) {
7980
console.log('got a scrape response from tracker: ' + data.announce)

0 commit comments

Comments
 (0)