From 5c604f844a058223e9b13d602e53e14d5f199ad6 Mon Sep 17 00:00:00 2001 From: Dave Cheney Date: Tue, 18 Feb 2014 08:04:01 +1100 Subject: [PATCH] undo CL 64820044 / 4f9dee8402af MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Callers of md5.Sum should do so to avoid allocations, the example did not demonstate this property. ««« original CL description crypto/md5: add example for Sum LGTM=dave R=golang-codereviews, dave CC=golang-codereviews https://golang.org/cl/64820044 »»» LGTM=minux.ma R=r, minux.ma CC=golang-codereviews https://golang.org/cl/65180043 --- src/pkg/crypto/md5/example_test.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/pkg/crypto/md5/example_test.go b/src/pkg/crypto/md5/example_test.go index e8ecab15f5..28be770a7a 100644 --- a/src/pkg/crypto/md5/example_test.go +++ b/src/pkg/crypto/md5/example_test.go @@ -17,9 +17,3 @@ func ExampleNew() { fmt.Printf("%x", h.Sum(nil)) // Output: e2c569be17396eca2a2e3c11578123ed } - -func ExampleSum() { - input := "The quick brown fox jumps over the lazy dog." - fmt.Printf("%x", md5.Sum([]byte(input))) - // Output: e4d909c290d0fb1ca068ffaddf22cbd0 -} -- 2.48.1