diff options
author | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-04-10 22:41:04 +0000 |
---|---|---|
committer | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-04-10 22:41:04 +0000 |
commit | bab146b689043962de105882a4716c34114e2805 (patch) | |
tree | c242ac373fa7da5bacbe8316e833c4033dc90359 /ext/digest | |
parent | 6ba4bd5858753c1aff9d11cfa7c478b9616c109a (diff) |
* 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
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35293 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/digest')
-rw-r--r-- | ext/digest/sha2/lib/sha2.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/digest/sha2/lib/sha2.rb b/ext/digest/sha2/lib/sha2.rb index 3c5bf0c863..58d12e9b09 100644 --- a/ext/digest/sha2/lib/sha2.rb +++ b/ext/digest/sha2/lib/sha2.rb @@ -68,11 +68,11 @@ module Digest # # 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 |