1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

rdoc for r57126 [ci skip]

* ext/zlib/zlib.c: [DOC] update as keyword arguments.
  [Feature #13020]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57129 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2016-12-20 17:15:37 +00:00
parent 94e97c898f
commit 0adce99357

View file

@ -4282,7 +4282,7 @@ static ID id_level, id_strategy;
/*
* 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;
*
* 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)