Skip to content

Commit

Permalink
Fixed documentation for Concurrent::Map
Browse files Browse the repository at this point in the history
  • Loading branch information
ksapozhnikov committed Mar 10, 2021
1 parent b47d294 commit c5431ea
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lib/concurrent-ruby/concurrent/map.rb
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,15 @@ def [](key)
end
end

# Set a value with key
# @param [Object] key
# @param [Object] value
# @return [Object] the new value
def []=(key, value)
super
end

alias_method :get, :[]
# TODO (pitr-ch 30-Oct-2018): doc
alias_method :put, :[]=

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

0 comments on commit c5431ea

Please sign in to comment.