Skip to content

Commit

Permalink
Fix lambda document example
Browse files Browse the repository at this point in the history
  • Loading branch information
lulalala committed Nov 9, 2017
1 parent 4e9b237 commit 2923396
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/i18n.rb
Expand Up @@ -140,7 +140,7 @@ def reload!
# called and passed the key and options.
#
# E.g. assuming the key <tt>:salutation</tt> resolves to:
# lambda { |key, options| options[:gender] == 'm' ? "Mr. %{options[:name]}" : "Mrs. %{options[:name]}" }
# lambda { |key, options| options[:gender] == 'm' ? "Mr. #{options[:name]}" : "Mrs. #{options[:name]}" }
#
# Then <tt>I18n.t(:salutation, :gender => 'w', :name => 'Smith') will result in "Mrs. Smith".
#
Expand Down

0 comments on commit 2923396

Please sign in to comment.