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

[DOC] Fix default value of shift_age [ci skip]

`LogDevice#initialize` treats shift_age: nil as 7, but
Logger#initialize has the default value of shift_age as 0.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56328 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
kazu 2016-10-03 12:21:14 +00:00
parent 787e878863
commit 81ac73c04d
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Mon Oct 3 21:19:46 2016 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
* lib/logger.rb: [DOC] Fix default value of shift_age.
Mon Oct 3 17:20:05 2016 George Brocklehurst <ruby@georgebrock.com> Mon Oct 3 17:20:05 2016 George Brocklehurst <ruby@georgebrock.com>
* ext/readline/readline.c (readline_s_set_quoting_detection_proc): * ext/readline/readline.c (readline_s_set_quoting_detection_proc):

View file

@ -340,7 +340,7 @@ class Logger
# #
# :call-seq: # :call-seq:
# Logger.new(logdev, shift_age = 7, shift_size = 1048576) # Logger.new(logdev, shift_age = 0, shift_size = 1048576)
# Logger.new(logdev, shift_age = 'weekly') # Logger.new(logdev, shift_age = 'weekly')
# Logger.new(logdev, level: :info) # Logger.new(logdev, level: :info)
# Logger.new(logdev, progname: 'progname') # Logger.new(logdev, progname: 'progname')