Skip to content

Commit 0052143

Browse files
BurdetteLamarpeterzhu2118
authored andcommitted
[DOC] Tweaks for String#unpack1
1 parent bacd356 commit 0052143

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pack.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,10 @@ def unpack(fmt, offset: 0)
2828
# call-seq:
2929
# unpack1(template, offset: 0) -> object
3030
#
31-
# Like String#unpack, but unpacks and returns only the first extracted object.
31+
# Like String#unpack with no block, but unpacks and returns only the first extracted object.
3232
# See {Packed Data}[rdoc-ref:packed_data.rdoc].
33+
#
34+
# Related: see {Converting to Non-String}[rdoc-ref:String@Converting+to+Non--5CString].
3335
def unpack1(fmt, offset: 0)
3436
Primitive.pack_unpack1(fmt, offset)
3537
end

0 commit comments

Comments
 (0)