Skip to content

Commit cf0b250

Browse files
authored
Merge pull request #834 from edzhelyov/fix-put-absent-docs
Fix the docs for Concurrent::Map#put_if_absent
2 parents 97fa0fb + 41aa058 commit cf0b250

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/concurrent/map.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ def fetch_or_store(key, default_value = NULL)
197197
# Insert value into map with key if key is absent in one atomic step.
198198
# @param [Object] key
199199
# @param [Object] value
200-
# @return [Object, nil] the value or nil when key was present
200+
# @return [Object, nil] the previous value when key was present or nil when there was no key
201201
def put_if_absent(key, value)
202202
computed = false
203203
result = compute_if_absent(key) do

0 commit comments

Comments
 (0)