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

ruby-changes:61760

From: Nobuyoshi <ko1@a...>
Date: Thu, 18 Jun 2020 09:01:32 +0900 (JST)
Subject: [ruby-changes:61760] e14cba354c (master): [DOC] argument to Exception#excepton is optional [ci skip]

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

From e14cba354ca031b48de0720fe0d96c04d9bb3439 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Thu, 18 Jun 2020 08:59:47 +0900
Subject: [DOC] argument to Exception#excepton is optional [ci skip]


diff --git a/error.c b/error.c
index e3d9974..af4dc23 100644
--- a/error.c
+++ b/error.c
@@ -1022,7 +1022,7 @@ exc_initialize(int argc, VALUE *argv, VALUE exc) https://github.com/ruby/ruby/blob/trunk/error.c#L1022
  *  Document-method: exception
  *
  *  call-seq:
- *     exc.exception(string)  ->  an_exception or exc
+ *     exc.exception([string])  ->  an_exception or exc
  *
  *  With no argument, or if the argument is the same as the receiver,
  *  return the receiver. Otherwise, create a new
-- 
cgit v0.10.2


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

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