Skip to content

Commit 2b66fc7

Browse files
committed
Fix typos in comment of rb_current_execution_context()
1 parent 023c6d8 commit 2b66fc7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vm_core.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2084,9 +2084,9 @@ rb_current_execution_context(bool expect_ec)
20842084
* and the address of the `ruby_current_ec` can be stored on a function
20852085
* frame. However, this address can be mis-used after native thread
20862086
* migration of a coroutine.
2087-
* 1) Get `ptr =&ruby_current_ec` op NT1 and store it on the frame.
2087+
* 1) Get `ptr = &ruby_current_ec` on NT1 and store it on the frame.
20882088
* 2) Context switch and resume it on the NT2.
2089-
* 3) `ptr` is used on NT2 but it accesses to the TLS on NT1.
2089+
* 3) `ptr` is used on NT2 but it accesses the TLS of NT1.
20902090
* This assertion checks such misusage.
20912091
*
20922092
* To avoid accidents, `GET_EC()` should be called once on the frame.

0 commit comments

Comments
 (0)