aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/time
diff options
context:
space:
mode:
authorJohn Duff <duff.john@gmail.com>2015-02-02 02:24:08 +0000
committerJohn Duff <duff.john@gmail.com>2015-02-02 02:24:08 +0000
commitfefa4018cb3c6ef731a80dc58587387ff75b224c (patch)
treecbdee7f4cb28003579bd8c102c6af3c9e3034df0 /activesupport/lib/active_support/core_ext/time
parent83c19734fbaeb644d46a4dcc197c941841c4e268 (diff)
downloadrails-fefa4018cb3c6ef731a80dc58587387ff75b224c.tar.gz
rails-fefa4018cb3c6ef731a80dc58587387ff75b224c.tar.bz2
rails-fefa4018cb3c6ef731a80dc58587387ff75b224c.zip
Fix typo in Time#change docs
Diffstat (limited to 'activesupport/lib/active_support/core_ext/time')
-rw-r--r--activesupport/lib/active_support/core_ext/time/calculations.rb2
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)