http://codereview.appspot.com/6457085/diff/5001/src/pkg/crypto/rand/example_test.go File src/pkg/crypto/rand/example_test.go (right): http://codereview.appspot.com/6457085/diff/5001/src/pkg/crypto/rand/example_test.go#newcode28 src/pkg/crypto/rand/example_test.go:28: fmt.Println(reflect.DeepEqual(b, make([]byte, count))) i think a user-oriented example should ...
12 years, 9 months ago
(2012-08-06 20:27:02 UTC)
#2
Please have another look. I also tried to change from ExampleRead() to ExampleReader() which seemed ...
12 years, 9 months ago
(2012-08-06 20:42:37 UTC)
#5
Please have another look.
I also tried to change from ExampleRead() to ExampleReader() which
seemed more appropriate, but godoc doesn't seem to display examples
for variables properly - even though the "Examples" section is shown
in the page index, the content is not displayed.
I left it as ExampleRead(). Let me know if it should be
ExampleReader() and if I should go fix godoc.
http://codereview.appspot.com/6457085/diff/11001/src/pkg/crypto/rand/example_test.go File src/pkg/crypto/rand/example_test.go (right): http://codereview.appspot.com/6457085/diff/11001/src/pkg/crypto/rand/example_test.go#newcode14 src/pkg/crypto/rand/example_test.go:14: func ExampleRead() { there should be a comment here.
12 years, 9 months ago
(2012-08-07 03:44:27 UTC)
#6
*** Submitted as http://code.google.com/p/go/source/detail?r=4738fd47e7a9 *** crypto/rand: Example for Read. R=adg, remyoudompheng, rsc, r CC=golang-dev http://codereview.appspot.com/6457085 ...
12 years, 9 months ago
(2012-08-08 02:05:02 UTC)
#9
Issue 6457085: code review 6457085: crypto/rand: Example for Read.
(Closed)
Created 12 years, 9 months ago by nictuku
Modified 12 years, 6 months ago
Reviewers:
Base URL:
Comments: 3