mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
error.c: fixed doc [ci skip]
* error.c (exc_message): fixed doc regarding the presence of to_str. [Fix GH-1517] Author: Marc Gauthier <marcg.gauthier@gmail.com> git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57405 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
48d489030a
commit
9600fb38a9
1 changed files with 1 additions and 3 deletions
4
error.c
4
error.c
|
@ -894,9 +894,7 @@ exc_to_s(VALUE exc)
|
||||||
* exception.message -> string
|
* exception.message -> string
|
||||||
*
|
*
|
||||||
* Returns the result of invoking <code>exception.to_s</code>.
|
* Returns the result of invoking <code>exception.to_s</code>.
|
||||||
* Normally this returns the exception's message or name. By
|
* Normally this returns the exception's message or name.
|
||||||
* supplying a to_str method, exceptions are agreeing to
|
|
||||||
* be used where Strings are expected.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static VALUE
|
static VALUE
|
||||||
|
|
Loading…
Reference in a new issue