From 464cef2de9ecd41cb6a8be0ae6d5607a34dccd68 Mon Sep 17 00:00:00 2001 From: Petrichor <61483125+p3ddd@users.noreply.github.com> Date: Sun, 9 Oct 2022 19:42:03 +0800 Subject: [PATCH] fix: typo in README.md (#58) Declare two undeclared variables --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d6d58d3..eb91d47 100644 --- a/README.md +++ b/README.md @@ -39,8 +39,8 @@ func main() { distance, _ = hash1.Distance(hash2) fmt.Printf("Distance between images: %v\n", distance) width, height := 8, 8 - hash3, _ = goimagehash.ExtAverageHash(img1, width, height) - hash4, _ = goimagehash.ExtAverageHash(img2, width, height) + hash3, _ := goimagehash.ExtAverageHash(img1, width, height) + hash4, _ := goimagehash.ExtAverageHash(img2, width, height) distance, _ = hash3.Distance(hash4) fmt.Printf("Distance between images: %v\n", distance) fmt.Printf("hash3 bit size: %v\n", hash3.Bits())