Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Fixed method name into documentation #115

Closed
wants to merge 1 commit into from

2 participants

naleksi Eric Hodel
naleksi

Documentation for SHA256#block_length used incorrectly #digest_length.

Eric Hodel
Collaborator

Committed in r35293 to ruby trunk.

Eric Hodel drbrain closed this
Sandor Szücs szuecs referenced this pull request from a commit in szuecs/ruby
Eric Hodel drbrain * 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
bab146b
Aaron Patterson tenderlove referenced this pull request from a commit in tenderlove/ruby
Eric Hodel drbrain * 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
4ce9e0d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 10, 2012
  1. naleksi
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 3 deletions.
  1. +3 3 ext/digest/sha2/lib/sha2.rb
6 ext/digest/sha2/lib/sha2.rb
View
@@ -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
Something went wrong with that request. Please try again.