Skip to content

Commit

Permalink
Merge pull request #834 from edzhelyov/fix-put-absent-docs
Browse files Browse the repository at this point in the history
Fix the docs for Concurrent::Map#put_if_absent
  • Loading branch information
pitr-ch committed Nov 20, 2019
2 parents 97fa0fb + 41aa058 commit cf0b250
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/concurrent/map.rb
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ def fetch_or_store(key, default_value = NULL)
# Insert value into map with key if key is absent in one atomic step.
# @param [Object] key
# @param [Object] value
# @return [Object, nil] the value or nil when key was present
# @return [Object, nil] the previous value when key was present or nil when there was no key
def put_if_absent(key, value)
computed = false
result = compute_if_absent(key) do
Expand Down

0 comments on commit cf0b250

Please sign in to comment.