diff --git a/README.md b/README.md index 56cddfb..7c8e94a 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,7 @@ bittorrent related things ## ./bencode/ fork from code.google.com/p/bencode-go +with a few changes ## ./torrent/ diff --git a/example_loader.go b/example_loader.go index bc54cee..2ef1708 100644 --- a/example_loader.go +++ b/example_loader.go @@ -28,14 +28,14 @@ func main() { continue } - buf, err := ioutil.ReadAll(fh) + buf, err := ioutil.ReadAll(fh) if err != nil { fmt.Fprintf(os.Stderr, "%s\n", err) continue } fh.Close() - tf := torrent.File{} + tf := torrent.File{} err = bencode.Unmarshal(buf, &tf) if err != nil { fmt.Fprintf(os.Stderr, "%s\n", err) @@ -54,7 +54,7 @@ func main() { if err != nil { fmt.Fprintf(os.Stderr, "%s\n", err) } - _, err = fhOutput.Write(buf) + _, err = fhOutput.Write(buf) if err != nil { fmt.Fprintf(os.Stderr, "%s\n", err) }