Skip to content

Commit d601d9d

Browse files
Fix typos for Cache::Store#fetch "Dynamic Options" [ci-skip]
1 parent 46c42a2 commit d601d9d

File tree

1 file changed

+3
-3
lines changed
  • activesupport/lib/active_support

1 file changed

+3
-3
lines changed

activesupport/lib/active_support/cache.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -439,9 +439,9 @@ def mute
439439
#
440440
# ==== Dynamic Options
441441
#
442-
# In some cases it may be necessary to to dynamically compute options based
443-
# on the cached value. For this purpose, a ActiveSupport::Cache::WriteOptions
444-
# instance is passed as a second argument to the block
442+
# In some cases it may be necessary to dynamically compute options based
443+
# on the cached value. To support this, an ActiveSupport::Cache::WriteOptions
444+
# instance is passed as the second argument to the block. For example:
445445
#
446446
# cache.fetch("authentication-token:#{user.id}") do |key, options|
447447
# token = authenticate_to_service

0 commit comments

Comments
 (0)