Skip to content

Commit c3d91eb

Browse files
altxtechbyroot
authored andcommitted
Fix several typos in the ractors docs
1 parent d21e4e7 commit c3d91eb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/ractor.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ port.receive # get a message to the port. Only the creator Ractor can receive fr
4747
#=> 42
4848
```
4949

50-
Ractors have its own deafult port and `Ractor#send`, `Ractor.receive` will use it.
50+
Ractors have its own default port and `Ractor#send`, `Ractor.receive` will use it.
5151

5252
### Copy & Move semantics to send messages
5353

@@ -201,7 +201,7 @@ You can wait multiple Ractor port's receiving.
201201
The return value of `Ractor.select()` is `[port, msg]` where `port` is a ready port and `msg` is received message.
202202

203203
To make convenient, `Ractor.select` can also accept Ractors to wait the termination of Ractors.
204-
The return value of `Ractor.select()` is `[r, msg]` where `r` is a terminated Ractor and `msg` is the value of Ractor's blcok.
204+
The return value of `Ractor.select()` is `[r, msg]` where `r` is a terminated Ractor and `msg` is the value of Ractor's block.
205205

206206
Wait for a single ractor (same as `Ractor#value`):
207207

@@ -359,7 +359,7 @@ The following objects are shareable.
359359

360360
Implementation: Now shareable objects (`RVALUE`) have `FL_SHAREABLE` flag. This flag can be added lazily.
361361

362-
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.
362+
To make shareable objects, `Ractor.make_shareable(obj)` method is provided. In this case, try to make shareable 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.
363363

364364
## Language changes to isolate unshareable objects between Ractors
365365

@@ -384,7 +384,7 @@ rescue Ractor::RemoteError => e
384384
end
385385
```
386386

387-
Note that some special global variables, such as `$stdin`, `$stdout` and `$stderr` are Ractor-lcoal. See [[Bug #17268]](https://bugs.ruby-lang.org/issues/17268) for more details.
387+
Note that some special global variables, such as `$stdin`, `$stdout` and `$stderr` are Ractor-local. See [[Bug #17268]](https://bugs.ruby-lang.org/issues/17268) for more details.
388388

389389
### Instance variables of shareable objects
390390

0 commit comments

Comments
 (0)