Skip to content

Commit dfac972

Browse files
bystonesgopherbot
authored andcommitted
crypto/pbkdf2: add missing error return value in example
This function returns two values, one was missing in the example. Change-Id: I738597f959011260f666c29b7d3ffad8e5cdc473 GitHub-Last-Rev: 5d99e04 GitHub-Pull-Request: #76032 Reviewed-on: https://go-review.googlesource.com/c/go/+/714420 Reviewed-by: Daniel McCarney <[email protected]> Reviewed-by: Roland Shoemaker <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Auto-Submit: Sean Liao <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> Reviewed-by: Sean Liao <[email protected]>
1 parent 47bf8f0 commit dfac972

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/crypto/pbkdf2/pbkdf2.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import (
2727
// can get a derived key for e.g. AES-256 (which needs a 32-byte key) by
2828
// doing:
2929
//
30-
// dk := pbkdf2.Key(sha1.New, "some password", salt, 4096, 32)
30+
// dk, err := pbkdf2.Key(sha1.New, "some password", salt, 4096, 32)
3131
//
3232
// Remember to get a good random salt. At least 8 bytes is recommended by the
3333
// RFC.

0 commit comments

Comments
 (0)