From 9600fb38a98919feaf6a97b8607a153501ced08f Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 23 Jan 2017 04:49:19 +0000 Subject: [PATCH] error.c: fixed doc [ci skip] * error.c (exc_message): fixed doc regarding the presence of to_str. [Fix GH-1517] Author: Marc Gauthier git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57405 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- error.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/error.c b/error.c index 0ec0cf895a..8c5430a134 100644 --- a/error.c +++ b/error.c @@ -894,9 +894,7 @@ exc_to_s(VALUE exc) * exception.message -> string * * Returns the result of invoking exception.to_s. - * Normally this returns the exception's message or name. By - * supplying a to_str method, exceptions are agreeing to - * be used where Strings are expected. + * Normally this returns the exception's message or name. */ static VALUE