Skip to content

Commit cac64db

Browse files
committed
Small correction of typos.
1 parent 2858c4d commit cac64db

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

doc/contributor/cext-values.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ handles.
4141

4242
We implement an `ExtensionCallStack` object to keep track of various
4343
bits of useful information during a call to a C extension. Each stack
44-
entry contains a `preservedOject`, and an additional potential
45-
`preservedObject` list which together will contain all the
44+
entry contains a `preservedObject`, and an additional potential
45+
`preservedObjects` list which together will contain all the
4646
`ValueWrapper`s converted to native handles during the process of a
4747
call. When a new call is made a new `ExtensionCallStackEntry` is added
4848
to the stack, and when the call exits that entry is popped off again.
@@ -83,22 +83,22 @@ When converted to native, the `ValueWrapper` takes the following long values.
8383
The built in objects, `true`, `false`, `nil`, and `undefined` are
8484
handled specially, and integers are relatively easy because there is a
8585
well defined mapping from the native representation to the integer and
86-
vice varsa, but to manage objects we need to do a little more work.
86+
vice versa, but to manage objects we need to do a little more work.
8787

8888
When we convert an object `VALUE` to its native representation we need
8989
to keep the corresponding `ValueWrapper` object alive, and we need to
9090
record that mapping from handle to `ValueWrapper` somewhere. The
9191
mapping from `ValueWrapper` to handle must also be stable, so a symbol
9292
or other immutable object that can outlive a context will need to
93-
store that mapping somewhere on the `RubyLangage` object.
93+
store that mapping somewhere on the `RubyLanguage` object.
9494

9595
We achieve all this through a combination of handle block maps and
9696
allocators. We deal with handles in blocks of 4096, and the current
9797
`RubyFiber` holds onto a `HandleBlockHolder` which in turn holds the
9898
current block for mutable objects (which cannot outlive the
9999
`RubyContext`) and immutable objects (which can outlive the
100100
context). Each fiber will take values from those blocks until they
101-
becomes exhausted. When that block is exhausted then `RubyLanauge`
101+
becomes exhausted. When that block is exhausted then `RubyLanguage`
102102
holds a `HandleBlockAllocator` which is responsible for allocating new
103103
blocks and recycling old ones. These blocks of handles however only
104104
hold weak references, because we don't want a conversion to native to

0 commit comments

Comments
 (0)