summaryrefslogtreecommitdiffstats
path: root/object.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-09-07 16:11:28 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-09-07 16:11:28 +0000
commit87d4cb2553dc6ef97d67320e80567962d0b6c767 (patch)
tree5f7ed633fd1ed96f4b613b8e7c4a581ffe7e7184 /object.c
parentf67ba6520591b04362c2e24a5b7bed7e9e53d76f (diff)
downloadruby-87d4cb2553dc6ef97d67320e80567962d0b6c767.tar.gz
ruby-87d4cb2553dc6ef97d67320e80567962d0b6c767.tar.xz
ruby-87d4cb2553dc6ef97d67320e80567962d0b6c767.zip
* object.c (nil_to_s): returns the empty string again.
[ruby-dev:29520] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10878 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'object.c')
-rw-r--r--object.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/object.c b/object.c
index 22f9ca7da..dae9c78e8 100644
--- a/object.c
+++ b/object.c
@@ -675,15 +675,15 @@ nil_to_f(VALUE obj)
/*
* call-seq:
- * nil.to_s => "nil"
+ * nil.to_s => ""
*
- * Always returns the string "nil".
+ * Always returns the empty string.
*/
static VALUE
nil_to_s(VALUE obj)
{
- return rb_str_new2("nil");
+ return rb_str_new2("");
}
/*