Skip to content

Commit

Permalink
* ext/digest/sha2/lib/sha2.rb (Digest#block_length): Fixed method name
Browse files Browse the repository at this point in the history
  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
  • Loading branch information
drbrain committed Apr 10, 2012
1 parent 1230458 commit 4ce9e0d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions ChangeLog
@@ -1,3 +1,9 @@
Wed Apr 11 07:38:33 2012 Eric Hodel <drbrain@segment7.net>

* ext/digest/sha2/lib/sha2.rb (Digest#block_length): Fixed method name
in documentation examples. Patch by naleski via
https://github.com/ruby/ruby/pull/115

Wed Apr 11 07:33:13 2012 Eric Hodel <drbrain@segment7.net>

* pack.c (pack_pack): Warn when an invalid character is found in the
Expand Down
6 changes: 3 additions & 3 deletions ext/digest/sha2/lib/sha2.rb
Expand Up @@ -68,11 +68,11 @@ def finish # :nodoc:
#
# Returns the block length of the digest in bytes.
#
# Digest::SHA256.new.digest_length * 8
# Digest::SHA256.new.block_length * 8
# # => 512
# Digest::SHA384.new.digest_length * 8
# Digest::SHA384.new.block_length * 8
# # => 1024
# Digest::SHA512.new.digest_length * 8
# Digest::SHA512.new.block_length * 8
# # => 1024
def block_length
@sha2.block_length
Expand Down

0 comments on commit 4ce9e0d

Please sign in to comment.