diff options
author | John Duff <duff.john@gmail.com> | 2015-02-02 02:24:08 +0000 |
---|---|---|
committer | John Duff <duff.john@gmail.com> | 2015-02-02 02:24:08 +0000 |
commit | fefa4018cb3c6ef731a80dc58587387ff75b224c (patch) | |
tree | cbdee7f4cb28003579bd8c102c6af3c9e3034df0 /activesupport | |
parent | 83c19734fbaeb644d46a4dcc197c941841c4e268 (diff) | |
download | rails-fefa4018cb3c6ef731a80dc58587387ff75b224c.tar.gz rails-fefa4018cb3c6ef731a80dc58587387ff75b224c.tar.bz2 rails-fefa4018cb3c6ef731a80dc58587387ff75b224c.zip |
Fix typo in Time#change docs
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/lib/active_support/core_ext/time/calculations.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext/time/calculations.rb b/activesupport/lib/active_support/core_ext/time/calculations.rb index 649dc52865..13610ba19f 100644 --- a/activesupport/lib/active_support/core_ext/time/calculations.rb +++ b/activesupport/lib/active_support/core_ext/time/calculations.rb @@ -69,7 +69,7 @@ class Time # and minute is passed, then sec, usec and nsec is set to 0. The +options+ # parameter takes a hash with any of these keys: <tt>:year</tt>, <tt>:month</tt>, # <tt>:day</tt>, <tt>:hour</tt>, <tt>:min</tt>, <tt>:sec</tt>, <tt>:usec</tt> - # <tt>:nsec</tt>. Path either <tt>:usec</tt> or <tt>:nsec</tt>, not both. + # <tt>:nsec</tt>. Pass either <tt>:usec</tt> or <tt>:nsec</tt>, not both. # # Time.new(2012, 8, 29, 22, 35, 0).change(day: 1) # => Time.new(2012, 8, 1, 22, 35, 0) # Time.new(2012, 8, 29, 22, 35, 0).change(year: 1981, day: 1) # => Time.new(1981, 8, 1, 22, 35, 0) |