Skip to content

Commit

Permalink
Merge pull request #2 from dborzov/master
Browse files Browse the repository at this point in the history
Fix typos
  • Loading branch information
anacrolix committed Mar 22, 2015
2 parents 67f90ed + f574117 commit 0f44781
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ There is support for protocol encryption, DHT, PEX, uTP, and various extensions.

## Installation

Install the library package with `go get github.com/anacrolix/torrent`, or one of the provided cmds with `go get github.com/anacrolix/...`.
Install the library package with `go get github.com/anacrolix/torrent`, or the provided cmds with `go get github.com/anacrolix/torrent/cmd/...`.

## Library example

Expand All @@ -25,4 +25,4 @@ There's a provided utility that downloads torrents from the command-line.
$ md5sum ubuntu-14.04.1-desktop-amd64.iso
119cb63b48c9a18f31f417f09655efbd ubuntu-14.04.1-desktop-amd64.iso
$ echo such amaze
wow
wow
9 changes: 5 additions & 4 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ Package torrent implements a torrent client.
Simple example:
c, _ := NewClient()
t, _, c.AddMagnet("magnet:?xt=urn:btih:ZOCMZQIPFFW7OLLMIC5HUB6BPCSDEOQU")
c, _ := torrent.NewClient(&torrent.Config{})
defer c.Close()
t, _ := c.AddMagnet("magnet:?xt=urn:btih:ZOCMZQIPFFW7OLLMIC5HUB6BPCSDEOQU")
t.DownloadAll()
c.WaitAll()
log.Print("erhmahgerd, torrent downloaded")
c.Close()
log.Print("ermahgerd, torrent downloaded")
*/
package torrent
Expand Down

0 comments on commit 0f44781

Please sign in to comment.