summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorKazuhiro NISHIYAMA <zn@mbf.nifty.com>2023-01-06 17:53:00 +0900
committerKazuhiro NISHIYAMA <zn@mbf.nifty.com>2023-01-06 17:53:00 +0900
commitbdd350453c30db9689064e6796f86bc483e442a8 (patch)
tree964e0b169a77b06ea72c97cd73f266762724e63e /doc
parent1be669d06342b8cc304efeb8e3108967520afa61 (diff)
Fix typos [ci skip]
Diffstat (limited to 'doc')
-rw-r--r--doc/ractor.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/ractor.md b/doc/ractor.md
index be1b220826..3ead510501 100644
--- a/doc/ractor.md
+++ b/doc/ractor.md
@@ -536,7 +536,7 @@ The following objects are shareable.
Implementation: Now shareable objects (`RVALUE`) have `FL_SHAREABLE` flag. This flag can be added lazily.
-To make shareable objects, `Ractor.make_shareable(obj)` method is provided. In this case, try to make sharaeble by freezing `obj` and recursively travasible objects. This method accepts `copy:` keyword (default value is false).`Ractor.make_shareable(obj, copy: true)` tries to make a deep copy of `obj` and make the copied object shareable.
+To make shareable objects, `Ractor.make_shareable(obj)` method is provided. In this case, try to make sharaeble by freezing `obj` and recursively traversable objects. This method accepts `copy:` keyword (default value is false).`Ractor.make_shareable(obj, copy: true)` tries to make a deep copy of `obj` and make the copied object shareable.
## Language changes to isolate unshareable objects between Ractors
@@ -705,8 +705,8 @@ TABLE = {a: 'ko1', b: 'ko2', c: 'ko3'}
* none: Do nothing. Same as: `CONST = expr`
* literal:
- * if `expr` is consites of literals, replaced to `CONST = Ractor.make_shareable(expr)`.
- * otherwise: replaced to `CONST = expr.tap{|o| raise unless Ractor.shareable?}`.
+ * if `expr` consists of literals, replaced to `CONST = Ractor.make_shareable(expr)`.
+ * otherwise: replaced to `CONST = expr.tap{|o| raise unless Ractor.shareable?(o)}`.
* experimental_everything: replaced to `CONST = Ractor.make_shareable(expr)`.
* experimental_copy: replaced to `CONST = Ractor.make_shareable(expr, copy: true)`.