summaryrefslogtreecommitdiff
path: root/lib/date.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/date.rb')
-rw-r--r--lib/date.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/date.rb b/lib/date.rb
index b3641516cf..f9ba3ba1e6 100644
--- a/lib/date.rb
+++ b/lib/date.rb
@@ -532,7 +532,7 @@ class Date
module_eval <<-"end;"
def self.#{old}(*args, &block)
if $VERBOSE
- $stderr.puts("\#{caller.shift.sub(/:in .*/, '')}: " \
+ $deferr.puts("\#{caller.shift.sub(/:in .*/, '')}: " \
"warning: \#{self}::#{old} is deprecated; " \
"use \#{self}::#{new}")
end
@@ -549,7 +549,7 @@ class Date
module_eval <<-"end;"
def #{old}(*args, &block)
if $VERBOSE
- $stderr.puts("\#{caller.shift.sub(/:in .*/, '')}: " \
+ $deferr.puts("\#{caller.shift.sub(/:in .*/, '')}: " \
"warning: \#{self.class}\##{old} is deprecated; " \
"use \#{self.class}\##{new}")
end