Skip to content

Commit

Permalink
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/string.cr
Original file line number Diff line number Diff line change
@@ -1749,7 +1749,7 @@ class String
# by the corresponding *tuple* values.
#
# ```
# "hello".gsub(e: 'a', l: 'd'}) # => "haddo"
# "hello".gsub({e: 'a', l: 'd'}) # => "haddo"
# ```
def gsub(tuple : NamedTuple)
gsub do |char|

0 comments on commit a8eef9b

Please sign in to comment.