Skip to content

Commit 199e0fd

Browse files
committed
Fix typos in the examples for Binary::Template.
1 parent 2706233 commit 199e0fd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/ronin/support/binary/template.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ def self.[](*fields,**kwargs)
225225
# The packed data.
226226
#
227227
# @example
228-
# template = Template.new[:uint32, [:char, 10]]
228+
# template = Template[:uint32, [:char, 10]]
229229
# template.pack(0x123456, ['A', 'B', 'C'])
230230
# # => "CBA\x00XYZ\x00\x00\x00\x00\x00\x00\x00"
231231
#
@@ -261,7 +261,7 @@ def pack(*arguments)
261261
# The unpacked data.
262262
#
263263
# @example
264-
# template = Template.new[:uint32, [:char, 10]]
264+
# template = Template[:uint32, [:char, 10]]
265265
# template.unpack("CBA\x00XYZ\x00\x00\x00\x00\x00\x00\x00")
266266
# # => [4276803, #<Ronin::Support::Binary::Array: "XYZ\x00\x00\x00\x00\x00\x00\x00">]
267267
#
@@ -298,7 +298,7 @@ def unpack(data)
298298
# The template String.
299299
#
300300
# @example
301-
# template = Template.new[:uint32, [:char, 10]]
301+
# template = Template[:uint32, [:char, 10]]
302302
# template.to_s
303303
# # => "La10"
304304
#

0 commit comments

Comments
 (0)