Skip to content

Commit c5431ea

Browse files
committed
Fixed documentation for Concurrent::Map
1 parent b47d294 commit c5431ea

File tree

1 file changed

+8
-1
lines changed
  • lib/concurrent-ruby/concurrent

1 file changed

+8
-1
lines changed

lib/concurrent-ruby/concurrent/map.rb

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,15 @@ def [](key)
143143
end
144144
end
145145

146+
# Set a value with key
147+
# @param [Object] key
148+
# @param [Object] value
149+
# @return [Object] the new value
150+
def []=(key, value)
151+
super
152+
end
153+
146154
alias_method :get, :[]
147-
# TODO (pitr-ch 30-Oct-2018): doc
148155
alias_method :put, :[]=
149156

150157
# Get a value with key, or default_value when key is absent,

0 commit comments

Comments
 (0)