summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorBenoit Daloze <eregontp@gmail.com>2023-04-15 16:09:04 +0200
committerGitHub <noreply@github.com>2023-04-15 16:09:04 +0200
commit4dc2e5a850e6b44e715ca8fa31d21dddf5ec1491 (patch)
tree300a86d28df80209c1f73e3a77bd1c0cea2eff7b /doc
parent19aa30d5d515cd602211d4708e709913d5a136e1 (diff)
downloadruby-4dc2e5a850e6b44e715ca8fa31d21dddf5ec1491.tar.gz
Fix packed_data.rdoc
Diffstat (limited to 'doc')
-rw-r--r--doc/packed_data.rdoc4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/packed_data.rdoc b/doc/packed_data.rdoc
index ec13b24c69..05d9ab758a 100644
--- a/doc/packed_data.rdoc
+++ b/doc/packed_data.rdoc
@@ -109,7 +109,7 @@ for one element in the input or output array.
s = [0, 1, -1].pack('c*') # => "\x00\x01\xFF"
s.unpack('c*') # => [0, 1, -1]
-- <tt>'C'</tt> - 8-bit signed integer
+- <tt>'C'</tt> - 8-bit unsigned integer
(like C <tt>unsigned char</tt>):
[0, 1, 255].pack('C*') # => "\x00\x01\xFF"
@@ -233,7 +233,7 @@ for one element in the input or output array.
# => [67305985, 4244504319]
==== Other \Integer Directives
-:
+
- <tt>'U'</tt> - UTF-8 character:
s = [4194304].pack('U*')