From ed7a09366216d64ca21d10ea3c13e1e57078b61f Mon Sep 17 00:00:00 2001
From: Eli Bendersky
Date: Thu, 31 Mar 2022 05:45:19 -0700
Subject: [PATCH] Clean up description in SHA256 example
---
examples/sha256-hashes/sha256-hashes.go | 3 ---
examples/sha256-hashes/sha256-hashes.hash | 4 ++--
public/sha256-hashes | 10 +++-------
3 files changed, 5 insertions(+), 12 deletions(-)
diff --git a/examples/sha256-hashes/sha256-hashes.go b/examples/sha256-hashes/sha256-hashes.go
index eb43763..0576060 100644
--- a/examples/sha256-hashes/sha256-hashes.go
+++ b/examples/sha256-hashes/sha256-hashes.go
@@ -28,9 +28,6 @@ func main() {
// to an existing byte slice: it usually isn't needed.
bs := h.Sum(nil)
- // SHA256 values are often printed in hex, for example
- // in git commits. Use the `%x` format verb to convert
- // a hash results to a hex string.
fmt.Println(s)
fmt.Printf("%x\n", bs)
}
diff --git a/examples/sha256-hashes/sha256-hashes.hash b/examples/sha256-hashes/sha256-hashes.hash
index 7975759..87f5601 100644
--- a/examples/sha256-hashes/sha256-hashes.hash
+++ b/examples/sha256-hashes/sha256-hashes.hash
@@ -1,2 +1,2 @@
-21f16c864c11958f29949c491a9684bcb885831f
-jIQtrUxWLvq
+66d0faf25cd171218b0fc0fc341836a4f0069932
+IHM1lZVm_Jm
diff --git a/public/sha256-hashes b/public/sha256-hashes
index 48894ca..28412cf 100644
--- a/public/sha256-hashes
+++ b/public/sha256-hashes
@@ -45,7 +45,7 @@ SHA256 hashes in Go.
- 
+ 
package main
|
@@ -124,15 +124,11 @@ to an existing byte slice: it usually isn’t needed.
- SHA256 values are often printed in hex, for example
-in git commits. Use the %x format verb to convert
-a hash results to a hex string.
-
+
|
-
- fmt.Println(s)
+ fmt.Println(s)
fmt.Printf("%x\n", bs)
}
|