From f574117e3019023c81bd3a4d97c4c92e45d949d8 Mon Sep 17 00:00:00 2001 From: Peter Borzov Date: Sat, 21 Mar 2015 09:11:45 -0400 Subject: [PATCH] Fix typos --- README.md | 4 ++-- client.go | 9 +++++---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index fff7242a..48276806 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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 \ No newline at end of file + wow diff --git a/client.go b/client.go index 4a4c8322..570d46a6 100644 --- a/client.go +++ b/client.go @@ -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