Skip to content

Commit

Permalink
Merge pull request ruby-concurrency#648 from meineerde/patch-1
Browse files Browse the repository at this point in the history
Fix code comment in Concurrent::Array
  • Loading branch information
pitr-ch committed Apr 9, 2017
2 parents 07808c7 + ec78750 commit aa2b811
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/concurrent/array.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module Concurrent
#
# @note `a += b` is **not** a **thread-safe** operation on
# `Concurrent::Array`. It reads array `a`, then it creates new `Concurrent::Array`
# which is concatenation of `a` and `b`, then it writes the concatenation to `b`.
# which is concatenation of `a` and `b`, then it writes the concatenation to `a`.
# The read and write are independent operations they do not form a single atomic
# operation therefore when two `+=` operations are executed concurrently updates
# may be lost. Use `#concat` instead.
Expand Down

0 comments on commit aa2b811

Please sign in to comment.