ruby-changes:28770
From: eregon <ko1@a...>
Date: Sun, 19 May 2013 06:23:30 +0900 (JST)
Subject: [ruby-changes:28770] eregon:r40822 (trunk): * object.c (rb_inspect): fix typo and error message
eregon 2013-05-19 06:23:15 +0900 (Sun, 19 May 2013) New Revision: 40822 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=40822 Log: * object.c (rb_inspect): fix typo and error message Modified files: trunk/object.c Index: object.c =================================================================== --- object.c (revision 40821) +++ object.c (revision 40822) @@ -428,7 +428,7 @@ rb_any_to_s(VALUE obj) https://github.com/ruby/ruby/blob/trunk/object.c#L428 /* * If the default external encoding is ASCII compatible, the encoding of * inspected result must be compatible with it. - * If the default external encoding is ASCII incomapatible, + * If the default external encoding is ASCII incompatible, * the result must be ASCII only. */ VALUE @@ -442,7 +442,7 @@ rb_inspect(VALUE obj) https://github.com/ruby/ruby/blob/trunk/object.c#L442 return str; } if (rb_enc_get(str) != ext && !rb_enc_str_asciionly_p(str)) - rb_raise(rb_eEncCompatError, "inspected result must be ASCII only or use the same encoding with default external"); + rb_raise(rb_eEncCompatError, "inspected result must be ASCII only or use the default external encoding"); return str; } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/