Skip to content

Commit 6db910e

Browse files
boonepitr-ch
authored andcommitted
Indent doc notes.
1 parent 5df3c13 commit 6db910e

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

lib/concurrent/array.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ module Concurrent
1010
# or writing at a time. This includes iteration methods like `#each`.
1111
#
1212
# @note `a += b` is **not** a **thread-safe** operation on
13-
# `Concurrent::Array`. It reads array `a`, then it creates new `Concurrent::Array`
14-
# which is concatenation of `a` and `b`, then it writes the concatenation to `a`.
15-
# The read and write are independent operations they do not form a single atomic
16-
# operation therefore when two `+=` operations are executed concurrently updates
17-
# may be lost. Use `#concat` instead.
13+
# `Concurrent::Array`. It reads array `a`, then it creates new `Concurrent::Array`
14+
# which is concatenation of `a` and `b`, then it writes the concatenation to `a`.
15+
# The read and write are independent operations they do not form a single atomic
16+
# operation therefore when two `+=` operations are executed concurrently updates
17+
# may be lost. Use `#concat` instead.
1818
#
1919
# @see http://ruby-doc.org/core-2.2.0/Array.html Ruby standard library `Array`
2020

lib/concurrent/concern/dereferenceable.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ def value=(value)
3737
# returning data to the caller (dereferencing).
3838
#
3939
# @note Most classes that include this module will call `#set_deref_options`
40-
# from within the constructor, thus allowing these options to be set at
41-
# object creation.
40+
# from within the constructor, thus allowing these options to be set at
41+
# object creation.
4242
#
4343
# @param [Hash] opts the options defining dereference behavior.
4444
# @option opts [String] :dup_on_deref (false) call `#dup` before returning the data

lib/concurrent/set.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ module Concurrent
1111
# or writing at a time. This includes iteration methods like `#each`.
1212
#
1313
# @note `a += b` is **not** a **thread-safe** operation on
14-
# `Concurrent::Set`. It reads Set `a`, then it creates new `Concurrent::Set`
15-
# which is union of `a` and `b`, then it writes the union to `a`.
16-
# The read and write are independent operations they do not form a single atomic
17-
# operation therefore when two `+=` operations are executed concurrently updates
18-
# may be lost. Use `#merge` instead.
14+
# `Concurrent::Set`. It reads Set `a`, then it creates new `Concurrent::Set`
15+
# which is union of `a` and `b`, then it writes the union to `a`.
16+
# The read and write are independent operations they do not form a single atomic
17+
# operation therefore when two `+=` operations are executed concurrently updates
18+
# may be lost. Use `#merge` instead.
1919
#
2020
# @see http://ruby-doc.org/stdlib-2.4.0/libdoc/set/rdoc/Set.html Ruby standard library `Set`
2121

0 commit comments

Comments
 (0)