From bb0b52a56804215da2619b19ec66e1889c2f9eb6 Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Mon, 1 May 2017 13:28:54 +0900 Subject: Update comments regarding Exception#to_str --- src/error.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/error.c') diff --git a/src/error.c b/src/error.c index 258a8f7df..13373d8f8 100644 --- a/src/error.c +++ b/src/error.c @@ -62,7 +62,7 @@ exc_initialize(mrb_state *mrb, mrb_value exc) * With no argument, or if the argument is the same as the receiver, * return the receiver. Otherwise, create a new * exception object of the same class as the receiver, but with a - * message equal to string.to_str. + * message equal to string. * */ @@ -111,9 +111,7 @@ exc_to_s(mrb_state *mrb, mrb_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 mrb_value -- cgit v1.2.3