aboutsummaryrefslogtreecommitdiffstats
path: root/object.c
diff options
context:
space:
mode:
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 22f9ca7da5..dae9c78e89 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("");
}
/*