Fix typos
This commit is contained in:
parent
67f90ed886
commit
f574117e30
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue