Skip to content

Commit

Permalink
Merge pull request #2862 from maimux2x/patch-1
Browse files Browse the repository at this point in the history
String#dumpのサンプルコードの実行結果がruby-1.9.0-0よりも前の内容だったため修正
  • Loading branch information
znz authored May 5, 2024
2 parents c8d0579 + 01913d8 commit 10a237f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion refm/api/src/_builtin/String
Original file line number Diff line number Diff line change
Expand Up @@ -1334,7 +1334,7 @@ str == eval(str.dump) となることが保証されています。

#@samplecode 例
# p だとさらにバックスラッシュが増えて見にくいので puts している
puts "abc\r\n\f\x00\b10\\\"".dump # => "abc\r\n\f\000\01010\\\""
puts "abc\r\n\f\x00\b10\\\"".dump # => "abc\r\n\f\x00\b10\\\""
#@end

#@since 2.5.0
Expand Down

0 comments on commit 10a237f

Please sign in to comment.