Skip to content

Commit a4a9a76

Browse files
correct example to use volatile method
1 parent 69669ea commit a4a9a76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/concurrent/synchronization/volatile.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module Synchronization
1010
# attr_volatile :bar
1111
#
1212
# def initialize
13-
# @volatile_bar = 1
13+
# self.bar = 1
1414
# end
1515
# end
1616
#

0 commit comments

Comments
 (0)