[前][次][番号順一覧][スレッド一覧]

ruby-changes:63273

From: Svyatoslav <ko1@a...>
Date: Mon, 5 Oct 2020 23:35:39 +0900 (JST)
Subject: [ruby-changes:63273] 3a3000f577 (master): Fix traditional Ring example in Actor-model

https://git.ruby-lang.org/ruby.git/commit/?id=3a3000f577

From 3a3000f57761b5435f6b3ca66d685214a2863d71 Mon Sep 17 00:00:00 2001
From: Svyatoslav Kryukov <s.g.kryukov@y...>
Date: Sat, 3 Oct 2020 12:48:02 +0300
Subject: Fix traditional Ring example in Actor-model


diff --git a/doc/ractor.md b/doc/ractor.md
index 565ceda..b0a8fc1 100644
--- a/doc/ractor.md
+++ b/doc/ractor.md
@@ -664,7 +664,7 @@ r = Ractor.new do https://github.com/ruby/ruby/blob/trunk/doc/ractor.md#L664
 end
 
 RN.times{
-  Ractor.new r do |next_r|
+  r = Ractor.new r do |next_r|
     next_r << Ractor.recv
   end
 }
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]