Skip to content

Commit 2191768

Browse files
committed
[DOC] Refine packed_data.rdoc
* Escape unexpected links * Remove unnecessary path name from in-file reference
1 parent 87e78e6 commit 2191768

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/language/packed_data.rdoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,15 +151,15 @@ Any directive may be followed by either of these modifiers:
151151
[65, 66].pack('C*') # => "AB"
152152
'AB'.unpack('C*') # => [65, 66]
153153

154-
- Integer +count+ - The directive is to be applied +count+ times:
154+
- \Integer +count+ - The directive is to be applied +count+ times:
155155

156156
[65, 66].pack('C2') # => "AB"
157157
[65, 66].pack('C3') # Raises ArgumentError.
158158
'AB'.unpack('C2') # => [65, 66]
159159
'AB'.unpack('C3') # => [65, 66, nil]
160160

161161
Note: Directives in <tt>%w[A a Z m]</tt> use +count+ differently;
162-
see {String Directives}[rdoc-ref:language/packed_data.rdoc@String+Directives].
162+
see {\String Directives}[rdoc-ref:@String+Directives].
163163

164164
If elements don't fit the provided directive, only least significant bits are encoded:
165165

0 commit comments

Comments
 (0)