Skip to content
Permalink
Browse files

Merge pull request #834 from edzhelyov/fix-put-absent-docs

Fix the docs for Concurrent::Map#put_if_absent
  • Loading branch information
pitr-ch committed Nov 20, 2019
2 parents 97fa0fb + 41aa058 commit cf0b2506013017b63eb4682e7dd0e3e5842bdfd1
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/concurrent/map.rb
@@ -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

0 comments on commit cf0b250

Please sign in to comment.
You can’t perform that action at this time.