2
0
mirror of synced 2025-02-24 22:58:28 +00:00

Merge pull request #2 from dborzov/master

Fix typos
This commit is contained in:
Matt Joiner 2015-03-22 23:11:33 +11:00
commit 0f4478115e
2 changed files with 7 additions and 6 deletions

View File

@ -9,7 +9,7 @@ There is support for protocol encryption, DHT, PEX, uTP, and various extensions.
## Installation ## 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 ## Library example

View File

@ -3,12 +3,13 @@ Package torrent implements a torrent client.
Simple example: Simple example:
c, _ := NewClient() c, _ := torrent.NewClient(&torrent.Config{})
t, _, c.AddMagnet("magnet:?xt=urn:btih:ZOCMZQIPFFW7OLLMIC5HUB6BPCSDEOQU") defer c.Close()
t, _ := c.AddMagnet("magnet:?xt=urn:btih:ZOCMZQIPFFW7OLLMIC5HUB6BPCSDEOQU")
t.DownloadAll() t.DownloadAll()
c.WaitAll() c.WaitAll()
log.Print("erhmahgerd, torrent downloaded") log.Print("ermahgerd, torrent downloaded")
c.Close()
*/ */
package torrent package torrent