We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bacd356 commit 0052143Copy full SHA for 0052143
1 file changed
pack.rb
@@ -28,8 +28,10 @@ def unpack(fmt, offset: 0)
28
# call-seq:
29
# unpack1(template, offset: 0) -> object
30
#
31
- # Like String#unpack, but unpacks and returns only the first extracted object.
+ # Like String#unpack with no block, but unpacks and returns only the first extracted object.
32
# See {Packed Data}[rdoc-ref:packed_data.rdoc].
33
+ #
34
+ # Related: see {Converting to Non-String}[rdoc-ref:String@Converting+to+Non--5CString].
35
def unpack1(fmt, offset: 0)
36
Primitive.pack_unpack1(fmt, offset)
37
end
0 commit comments