summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Chen <tom@tomchen.co>2021-01-10 15:39:37 -0500
committerGitHub <noreply@github.com>2021-01-10 15:39:37 -0500
commit8187228de0142d3ac7950b7d977c2849e934c637 (patch)
tree1b32367ec76e6aa80fe1a69940d0067fabc12363
parent0e015f9389cd468b0ade2d336526bb75b5bf5015 (diff)
Fix ractor docs (#4048) [doc]
Notes
Notes: Merged-By: marcandre <github@marc-andre.ca>
-rw-r--r--ractor.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/ractor.rb b/ractor.rb
index e6d5847237..2238e090c9 100644
--- a/ractor.rb
+++ b/ractor.rb
@@ -1,13 +1,13 @@
# 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.