Skip to content

Commit b5105f1

Browse files
etiennebarriebyroot
authored andcommitted
[DOC] Fix example of unpack ^ directive
1 parent 93e68ca commit b5105f1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

doc/language/packed_data.rdoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -726,4 +726,4 @@ for one byte in the input or output string.
726726

727727
- <tt>'^'</tt> - Only for unpacking; the current position:
728728

729-
"foo\0\0\0".unpack("Z*C") # => ["foo", 6]
729+
"foo\0\0\0".unpack("Z*^") # => ["foo", 4]

0 commit comments

Comments
 (0)