summaryrefslogtreecommitdiffhomepage
path: root/src/error.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2017-05-01 13:28:54 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2017-05-23 23:50:42 +0900
commitbb0b52a56804215da2619b19ec66e1889c2f9eb6 (patch)
treefed5884d4c1b9e3aa112ab47316fe6dab1518db0 /src/error.c
parent1bb6964db64b811015a2ae7d47c766d5495f742f (diff)
downloadmruby-bb0b52a56804215da2619b19ec66e1889c2f9eb6.tar.gz
mruby-bb0b52a56804215da2619b19ec66e1889c2f9eb6.zip
Update comments regarding Exception#to_str
Diffstat (limited to 'src/error.c')
-rw-r--r--src/error.c6
1 files changed, 2 insertions, 4 deletions
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 <code>string.to_str</code>.
+ * message equal to <code>string</code>.
*
*/
@@ -111,9 +111,7 @@ exc_to_s(mrb_state *mrb, mrb_value exc)
* exception.message -> string
*
* Returns the result of invoking <code>exception.to_s</code>.
- * 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