Skip to content

Commit bab146b

Browse files
committed
* ext/digest/sha2/lib/sha2.rb (Digest#block_length): Fixed method name
in documentation examples. Patch by naleski via ruby#115 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35293 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent 6ba4bd5 commit bab146b

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

ChangeLog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
Wed Apr 11 07:38:33 2012 Eric Hodel <[email protected]>
2+
3+
* ext/digest/sha2/lib/sha2.rb (Digest#block_length): Fixed method name
4+
in documentation examples. Patch by naleski via
5+
https://github.com/ruby/ruby/pull/115
6+
17
Wed Apr 11 07:33:13 2012 Eric Hodel <[email protected]>
28

39
* pack.c (pack_pack): Warn when an invalid character is found in the

ext/digest/sha2/lib/sha2.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,11 @@ def finish # :nodoc:
6868
#
6969
# Returns the block length of the digest in bytes.
7070
#
71-
# Digest::SHA256.new.digest_length * 8
71+
# Digest::SHA256.new.block_length * 8
7272
# # => 512
73-
# Digest::SHA384.new.digest_length * 8
73+
# Digest::SHA384.new.block_length * 8
7474
# # => 1024
75-
# Digest::SHA512.new.digest_length * 8
75+
# Digest::SHA512.new.block_length * 8
7676
# # => 1024
7777
def block_length
7878
@sha2.block_length

0 commit comments

Comments
 (0)