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

ruby-changes:45056

From: nobu <ko1@a...>
Date: Wed, 21 Dec 2016 02:15:42 +0900 (JST)
Subject: [ruby-changes:45056] nobu:r57129 (trunk): rdoc for r57126 [ci skip]

nobu	2016-12-21 02:15:37 +0900 (Wed, 21 Dec 2016)

  New Revision: 57129

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

  Log:
    rdoc for r57126 [ci skip]
    
    * ext/zlib/zlib.c: [DOC] update as keyword arguments.
      [Feature #13020]

  Modified files:
    trunk/ext/zlib/zlib.c
Index: ext/zlib/zlib.c
===================================================================
--- ext/zlib/zlib.c	(revision 57128)
+++ ext/zlib/zlib.c	(revision 57129)
@@ -4282,7 +4282,7 @@ static ID id_level, id_strategy; https://github.com/ruby/ruby/blob/trunk/ext/zlib/zlib.c#L4282
 
 /*
  * call-seq:
- *   Zlib.gzip(src, level=nil, strategy=nil) -> String
+ *   Zlib.gzip(src, level: nil, strategy: nil) -> String
  *
  * Gzip the given +string+. Valid values of level are
  * Zlib::NO_COMPRESSION, Zlib::BEST_SPEED, Zlib::BEST_COMPRESSION,
@@ -4290,7 +4290,7 @@ static ID id_level, id_strategy; https://github.com/ruby/ruby/blob/trunk/ext/zlib/zlib.c#L4290
  *
  * This method is almost equivalent to the following code:
  *
- *   def gzip(string, level=nil, strategy=nil)
+ *   def gzip(string, level: nil, strategy: nil)
  *     sio = StringIO.new
  *     sio.binmode
  *     gz = Zlib::GzipWriter.new(sio, level, strategy)

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

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