summaryrefslogtreecommitdiff
path: root/lib/time.rb
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-10-16 17:47:19 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-10-16 17:47:19 +0000
commit8ef5da3be1577bb5ae7f55b60cf9fedb10ecb85e (patch)
treea700e3fe92165180b04451746f9c4fda4f038289 /lib/time.rb
parent3ec0bc3828794a6ef6293b53b403af8bc2362934 (diff)
consistent parentheses in assignment RHS.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/time.rb')
-rw-r--r--lib/time.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/time.rb b/lib/time.rb
index 115e7e9633..9d2ac558d9 100644
--- a/lib/time.rb
+++ b/lib/time.rb
@@ -135,7 +135,7 @@ class Time
#
def parse(date, now=Time.now)
year, mon, day, hour, min, sec, zone, _ = ParseDate.parsedate(date)
- year = yield year if year && block_given?
+ year = yield(year) if year && block_given?
if now
begin