Skip to content

Commit 26b533c

Browse files
hsbtclaude
andcommitted
Fix broken RDoc examples that raise or fail to run
The Hash#[] and Array#product examples referenced undefined variables, the StringIO doc named a nonexistent File::RDRW constant, and Pathname#mkpath's call-seq advertised a positional permissions argument that the keyword-only implementation does not accept. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 9d3e502 commit 26b533c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎doc/stringio/stringio.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ strio.gets # Raises IOError: not opened for reading
173173
Mode specified as one of:
174174

175175
- String: `'r+'`.
176-
- Constant: `File::RDRW`.
176+
- Constant: `File::RDWR`.
177177

178178
Initial state:
179179

0 commit comments

Comments
 (0)