[前][次][番号順一覧][スレッド一覧]

ruby-changes:61767

From: Nobuyoshi <ko1@a...>
Date: Thu, 18 Jun 2020 13:35:21 +0900 (JST)
Subject: [ruby-changes:61767] a447563cf8 (master): [DOC] Added Exception.exception to Exception.new [ci skip]

https://git.ruby-lang.org/ruby.git/commit/?id=a447563cf8

From a447563cf899f2a33511c12735160a8bbd0efecd Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Thu, 18 Jun 2020 09:00:34 +0900
Subject: [DOC] Added Exception.exception to Exception.new [ci skip]


diff --git a/error.c b/error.c
index af4dc23..fb86023 100644
--- a/error.c
+++ b/error.c
@@ -1003,7 +1003,8 @@ exc_init(VALUE exc, VALUE mesg) https://github.com/ruby/ruby/blob/trunk/error.c#L1003
 
 /*
  * call-seq:
- *    Exception.new(msg = nil)   ->  exception
+ *    Exception.new(msg = nil)        ->  exception
+ *    Exception.exception(msg = nil)  ->  exception
  *
  *  Construct a new Exception object, optionally passing in
  *  a message.
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]