Skip to content

Commit

Permalink
Merge pull request #655 from 4ndv/master
Browse files Browse the repository at this point in the history
Replaced :get_uint8 with :read_uint8 in Pointer#read_array_of_type documentation
  • Loading branch information
larskanis committed Jan 6, 2019
2 parents 94a80cf + d6fa147 commit 09ddbbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ffi/pointer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def write_string(str, len=nil)
# @return [Array]
# Read an array of +type+ of length +length+.
# @example
# ptr.read_array_of_type(TYPE_UINT8, :get_uint8, 4) # -> [1, 2, 3, 4]
# ptr.read_array_of_type(TYPE_UINT8, :read_uint8, 4) # -> [1, 2, 3, 4]
def read_array_of_type(type, reader, length)
ary = []
size = FFI.type_size(type)
Expand Down

0 comments on commit 09ddbbd

Please sign in to comment.