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

ruby-changes:64823

From: Tom <ko1@a...>
Date: Mon, 11 Jan 2021 05:39:52 +0900 (JST)
Subject: [ruby-changes:64823] 8187228de0 (master): Fix ractor docs (#4048) [doc]

https://git.ruby-lang.org/ruby.git/commit/?id=8187228de0

From 8187228de0142d3ac7950b7d977c2849e934c637 Mon Sep 17 00:00:00 2001
From: Tom Chen <tom@t...>
Date: Sun, 10 Jan 2021 15:39:37 -0500
Subject: Fix ractor docs (#4048) [doc]


diff --git a/ractor.rb b/ractor.rb
index e6d5847..2238e09 100644
--- a/ractor.rb
+++ b/ractor.rb
@@ -1,13 +1,13 @@ https://github.com/ruby/ruby/blob/trunk/ractor.rb#L1
 # Ractor is a Actor-model abstraction for Ruby that provides thread-safe parallel execution.
 #
-# Ractor.new can make new Ractor and it will run in parallel.
+# Ractor.new can make a new Ractor, and it will run in parallel.
 #
 #     # The simplest ractor
 #     r = Ractor.new {puts "I am in Ractor!"}
-#     r.take # wait it to finish
+#     r.take # wait for it to finish
 #     # here "I am in Ractor!" would be printed
 #
-# Ractors do not share usual objects, so the some kind of thread-safety concerns such as data-race,
+# Ractors do not share usual objects, so the same kinds of thread-safety concerns such as data-race,
 # race-conditions are not available on multi-ractor programming.
 #
 # To achieve this, ractors severely limit object sharing between different ractors.
-- 
cgit v0.10.2


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

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