From 09d6c3a110ea9eba348030d81881150168d0d5a4 Mon Sep 17 00:00:00 2001 From: Inanc Gumus Date: Tue, 5 Nov 2019 13:47:53 +0300 Subject: [PATCH] fix: png detector comments iface --- interfaces/15-png-detector/.gitignore | 1 + interfaces/15-png-detector/main.go | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 interfaces/15-png-detector/.gitignore diff --git a/interfaces/15-png-detector/.gitignore b/interfaces/15-png-detector/.gitignore new file mode 100644 index 0000000..4390d68 --- /dev/null +++ b/interfaces/15-png-detector/.gitignore @@ -0,0 +1 @@ +rosie.unknown \ No newline at end of file diff --git a/interfaces/15-png-detector/main.go b/interfaces/15-png-detector/main.go index 690d63d..646eb9a 100644 --- a/interfaces/15-png-detector/main.go +++ b/interfaces/15-png-detector/main.go @@ -36,8 +36,8 @@ func main() { } defer resp.Body.Close() - // stream from the standard input to the in-memory buffer in 32KB data chunks. - // os.Stdin.Read(...) -> memory.Write(...) + // stream from the web server to the in-memory buffer in 32KB data chunks. + // resp.Body.Read(...) -> memory.Write(...) if _, err := io.Copy(&memory, resp.Body); err != nil { log.Fatal(err) }