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

ruby-changes:59385

From: zverok <ko1@a...>
Date: Mon, 23 Dec 2019 05:53:07 +0900 (JST)
Subject: [ruby-changes:59385] d78fcfb7ab (master): Fix FrozenError#receiver and #initialize docs

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

From d78fcfb7ab351fd4861e42985db34e9bda3509a7 Mon Sep 17 00:00:00 2001
From: zverok <zverok.offline@g...>
Date: Sat, 21 Dec 2019 22:21:20 +0200
Subject: Fix FrozenError#receiver and #initialize docs


diff --git a/error.c b/error.c
index bc5539c..9557d85 100644
--- a/error.c
+++ b/error.c
@@ -1482,7 +1482,7 @@ err_init_recv(VALUE exc, VALUE recv) https://github.com/ruby/ruby/blob/trunk/error.c#L1482
  * method.
  *
  *    a = [].freeze
- *    raise FrozenError.new("can't modify frozen array", a)
+ *    raise FrozenError.new("can't modify frozen array", receiver: a)
  */
 
 static VALUE
@@ -1500,6 +1500,7 @@ frozen_err_initialize(int argc, VALUE *argv, VALUE self) https://github.com/ruby/ruby/blob/trunk/error.c#L1500
 }
 
 /*
+ * Document-method: FrozenError#receiver
  * call-seq:
  *   frozen_error.receiver  -> object
  *
-- 
cgit v0.10.2


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

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