Skip to content

Commit b0f1e1c

Browse files
committed
Fix syntax in documentation for I18n::Backend::Base.interpolate
1 parent 74258ad commit b0f1e1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/i18n/backend/base.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,8 @@ def pluralize(locale, entry, count)
188188
#
189189
# if the given subject is an array then:
190190
# each element of the array is recursively interpolated (until it finds a string)
191-
# method interpolates ["yes, %{user}", ["maybe no, %{user}, "no, %{user}"]], :user => "bartuz"
192-
# # => "["yes, bartuz",["maybe no, bartuz", "no, bartuz"]]"
191+
# method interpolates ["yes, %{user}", ["maybe no, %{user}", "no, %{user}"]], :user => "bartuz"
192+
# # => ["yes, bartuz", ["maybe no, bartuz", "no, bartuz"]]
193193
def interpolate(locale, subject, values = EMPTY_HASH)
194194
return subject if values.empty?
195195

0 commit comments

Comments
 (0)