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

ruby-changes:41258

From: nobu <ko1@a...>
Date: Sun, 27 Dec 2015 18:08:25 +0900 (JST)
Subject: [ruby-changes:41258] nobu:r53330 (trunk): Fix rdoc for String#rstrip!, lstrip! [ci skip]

nobu	2015-12-27 18:08:17 +0900 (Sun, 27 Dec 2015)

  New Revision: 53330

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=53330

  Log:
    Fix rdoc for String#rstrip!, lstrip! [ci skip]
    
    * string.c (rb_str_lstrip_bang, rb_str_rstrip_bang): [DOC] Fix
      ruby-doc comments for String#rstrip! and lstrip!.  It looks like
      dropped bang.  [Fix GH-1175]

  Modified files:
    trunk/ChangeLog
    trunk/string.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 53329)
+++ ChangeLog	(revision 53330)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sun Dec 27 18:08:15 2015  Kuniaki IGARASHI  <igaiga@g...>
+
+	* string.c (rb_str_lstrip_bang, rb_str_rstrip_bang): [DOC] Fix
+	  ruby-doc comments for String#rstrip! and lstrip!.  It looks like
+	  dropped bang.  [Fix GH-1175]
+
 Sun Dec 27 15:14:20 2015  Eric Wong  <e@8...>
 
 	* io.c (io_getpartial): remove unused kwarg from template
Index: string.c
===================================================================
--- string.c	(revision 53329)
+++ string.c	(revision 53330)
@@ -7684,7 +7684,8 @@ lstrip_offset(VALUE str, const char *s, https://github.com/ruby/ruby/blob/trunk/string.c#L7684
  *
  *  Refer to <code>strip</code> for the definition of whitespace.
  *
- *     "  hello  ".lstrip   #=> "hello  "
+ *     "  hello  ".lstrip!  #=> "hello  "
+ *     "hello  ".lstrip!    #=> nil
  *     "hello".lstrip!      #=> nil
  */
 
@@ -7773,7 +7774,8 @@ rstrip_offset(VALUE str, const char *s, https://github.com/ruby/ruby/blob/trunk/string.c#L7774
  *
  *  Refer to <code>strip</code> for the definition of whitespace.
  *
- *     "  hello  ".rstrip   #=> "  hello"
+ *     "  hello  ".rstrip!  #=> "  hello"
+ *     "  hello".rstrip!    #=> nil
  *     "hello".rstrip!      #=> nil
  */
 

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

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