From 26053e23236743e14a57950ef573992810a54a54 Mon Sep 17 00:00:00 2001 From: Mattias Wadman Date: Thu, 25 Jul 2019 00:39:13 +0200 Subject: [PATCH] Fix example error --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7c6e0a5..f1b302d 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ for what is recommended to install in addition to youtube-dl. result, err := goutubedl.New(context.Background(), URL, goutubedl.Options{}) downloadResult, err := result.Download(context.Background(), FormatID) io.Copy(ioutil.Discard, downloadResult) -dr.Close() +downloadResult.Close() ``` See [goutubedl cmd tool](cmd/goutubedl/main.go) or [ydls](https://github.com/wader/ydls)