Clean up description in SHA256 example

This commit is contained in:
Eli Bendersky
2022-03-31 05:45:19 -07:00
parent ac01d2d4bb
commit ed7a093662
3 changed files with 5 additions and 12 deletions

View File

@@ -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)
}

View File

@@ -1,2 +1,2 @@
21f16c864c11958f29949c491a9684bcb885831f
jIQtrUxWLvq
66d0faf25cd171218b0fc0fc341836a4f0069932
IHM1lZVm_Jm