Fix typos in comments
This commit is contained in:
parent
a7f03e8d46
commit
e7132767a1
2 changed files with 6 additions and 6 deletions
|
|
@ -210,7 +210,7 @@ proc getMaxMem(a: var MemRegion): int =
|
||||||
|
|
||||||
proc llAlloc(a: var MemRegion, size: int): pointer =
|
proc llAlloc(a: var MemRegion, size: int): pointer =
|
||||||
# *low-level* alloc for the memory managers data structures. Deallocation
|
# *low-level* alloc for the memory managers data structures. Deallocation
|
||||||
# is done at he end of the allocator's life time.
|
# is done at the end of the allocator's life time.
|
||||||
if a.llmem == nil or size > a.llmem.size:
|
if a.llmem == nil or size > a.llmem.size:
|
||||||
# the requested size is ``roundup(size+sizeof(LLChunk), PageSize)``, but
|
# the requested size is ``roundup(size+sizeof(LLChunk), PageSize)``, but
|
||||||
# since we know ``size`` is a (small) constant, we know the requested size
|
# since we know ``size`` is a (small) constant, we know the requested size
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ else:
|
||||||
{.pragma: codegenType, importc.}
|
{.pragma: codegenType, importc.}
|
||||||
|
|
||||||
type
|
type
|
||||||
# This should be he same as ast.TTypeKind
|
# This should be the same as ast.TTypeKind
|
||||||
# many enum fields are not used at runtime
|
# many enum fields are not used at runtime
|
||||||
TNimKind = enum
|
TNimKind = enum
|
||||||
tyNone,
|
tyNone,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue