aboutsummaryrefslogtreecommitdiffstats
path: root/doc/ractor.md
diff options
context:
space:
mode:
authorSvyatoslav Kryukov <s.g.kryukov@yandex.ru>2020-10-03 12:48:02 +0300
committerMarc-André Lafortune <github@marc-andre.ca>2020-10-05 10:35:11 -0400
commit3a3000f57761b5435f6b3ca66d685214a2863d71 (patch)
treecf457c788e6a322d0a016a44e4a491acbeae4414 /doc/ractor.md
parent20ad1017017ea736667d86fa0250dc1a39daefa1 (diff)
downloadruby-3a3000f57761b5435f6b3ca66d685214a2863d71.tar.gz
Fix traditional Ring example in Actor-model
Diffstat (limited to 'doc/ractor.md')
-rw-r--r--doc/ractor.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/ractor.md b/doc/ractor.md
index 565ceda58d..b0a8fc1d20 100644
--- a/doc/ractor.md
+++ b/doc/ractor.md
@@ -664,7 +664,7 @@ r = Ractor.new do
end
RN.times{
- Ractor.new r do |next_r|
+ r = Ractor.new r do |next_r|
next_r << Ractor.recv
end
}