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

ruby-changes:63190

From: Burdette <ko1@a...>
Date: Tue, 29 Sep 2020 01:58:58 +0900 (JST)
Subject: [ruby-changes:63190] 0555bd8435 (master): Enhanced RDoc for String#succ! (#3596)

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

From 0555bd8435d352a24bab1e03a7879b9abcc34b88 Mon Sep 17 00:00:00 2001
From: Burdette Lamar <BurdetteLamar@Y...>
Date: Mon, 28 Sep 2020 11:58:39 -0500
Subject: Enhanced RDoc for String#succ! (#3596)

* Enhanced RDoc for String#succ!

diff --git a/string.c b/string.c
index cf25dc1..4ffd57c 100644
--- a/string.c
+++ b/string.c
@@ -4310,10 +4310,11 @@ str_succ(VALUE str) https://github.com/ruby/ruby/blob/trunk/string.c#L4310
 
 /*
  *  call-seq:
- *     str.succ!   -> str
- *     str.next!   -> str
+ *    string.succ! -> self
  *
- *  Equivalent to String#succ, but modifies the receiver in place.
+ *  Equivalent to String#succ, but modifies +self+ in place; returns +self+.
+ *
+ *  String#next! is an alias for String#succ!.
  */
 
 static VALUE
-- 
cgit v0.10.2


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

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