Skip to content

Commit 072083c

Browse files
committed
Cleared interpreter warnings.
1 parent 9f58449 commit 072083c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

examples/go-by-example-channels/non-blocking-channel-operations.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
s.default { print "no message received\n" }
1616
end
1717

18-
msg = 'hi'
18+
message = 'hi'
1919
Channel.select do |s|
20-
s.put(messages, msg) { |m| print "sent message #{m}\n" }
20+
s.put(messages, message) { |msg| print "sent message #{msg}\n" }
2121
s.default { print "no message sent\n" }
2222
end
2323

lib/concurrent/edge/future.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def post_on(executor, *args, &job)
131131
# Represents an event which will happen in future (will be completed). It has to always happen.
132132
class Event < Synchronization::LockableObject
133133
safe_initialization!
134-
private *attr_volatile_with_cas(:internal_state)
134+
private(*attr_volatile_with_cas(:internal_state))
135135
public :internal_state
136136
include Concern::Deprecation
137137
include Concern::Logging

lib/concurrent/lazy_register.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ module Concurrent
1818
# @!macro edge_warning
1919
class LazyRegister < Synchronization::Object
2020

21-
private *attr_volatile_with_cas(:data)
21+
private(*attr_volatile_with_cas(:data))
2222

2323
def initialize
2424
super

0 commit comments

Comments
 (0)