doc typos
This commit is contained in:
parent
858ff7c67a
commit
b1557982e3
|
@ -338,7 +338,7 @@ value from a raw pointer to a string:
|
||||||
(cast buffer _pointer _string)
|
(cast buffer _pointer _string)
|
||||||
]
|
]
|
||||||
|
|
||||||
Conversion via the @racket[_string] type causes the data refereced by
|
Conversion via the @racket[_string] type causes the data referenced by
|
||||||
the original pointer to be copied (and UTF-8 decoded), so the memory
|
the original pointer to be copied (and UTF-8 decoded), so the memory
|
||||||
referenced by @racket[buffer] is no longer needed. Memory allocated
|
referenced by @racket[buffer] is no longer needed. Memory allocated
|
||||||
with @racket[(malloc 'raw ...)] must be released with @racket[free]:
|
with @racket[(malloc 'raw ...)] must be released with @racket[free]:
|
||||||
|
|
|
@ -133,7 +133,7 @@ following interaction successfully accesses @racket[x] via
|
||||||
(eval 'x)
|
(eval 'x)
|
||||||
]
|
]
|
||||||
|
|
||||||
In contrast, try the following a simple module and running in directly
|
In contrast, try the following simple module and running it directly
|
||||||
in DrRacket or supplying the file as a command-line argument to
|
in DrRacket or supplying the file as a command-line argument to
|
||||||
@exec{racket}:
|
@exec{racket}:
|
||||||
|
|
||||||
|
@ -193,7 +193,7 @@ so @racket[''m] is the quoted form of the path.}
|
||||||
The @racket[module->namespace] function is mostly useful from outside
|
The @racket[module->namespace] function is mostly useful from outside
|
||||||
a module, where the module's full name is known. Inside a
|
a module, where the module's full name is known. Inside a
|
||||||
@racket[module] form, however, the full name of a module may not be
|
@racket[module] form, however, the full name of a module may not be
|
||||||
known, because it may depend on where the module source is location
|
known, because it may depend on where the module source is located
|
||||||
when it is eventually loaded.
|
when it is eventually loaded.
|
||||||
|
|
||||||
From within a @racket[module], use @racket[define-namespace-anchor] to
|
From within a @racket[module], use @racket[define-namespace-anchor] to
|
||||||
|
|
|
@ -150,7 +150,7 @@ Creates an event that is @tech{ready for synchronization} when
|
||||||
@racket[evt] is @tech{ready for synchronization}, but whose
|
@racket[evt] is @tech{ready for synchronization}, but whose
|
||||||
@tech{synchronization result} is determined by applying @racket[wrap]
|
@tech{synchronization result} is determined by applying @racket[wrap]
|
||||||
to the @tech{synchronization result} of @racket[evt]. The number
|
to the @tech{synchronization result} of @racket[evt]. The number
|
||||||
of arguments accetped by @racket[wrap] must match the number of values
|
of arguments accepted by @racket[wrap] must match the number of values
|
||||||
for the synchronization result of @racket[evt].
|
for the synchronization result of @racket[evt].
|
||||||
|
|
||||||
The call to @racket[wrap] is
|
The call to @racket[wrap] is
|
||||||
|
|
|
@ -62,7 +62,7 @@ thread created to invoke @racket[thunk] terminates.
|
||||||
@defproc[(current-thread) thread?]{Returns the @tech{thread
|
@defproc[(current-thread) thread?]{Returns the @tech{thread
|
||||||
descriptor} for the currently executing thread.}
|
descriptor} for the currently executing thread.}
|
||||||
|
|
||||||
@defproc[(thread/suspend-to-kill [thunk (-> any)]) thread]{
|
@defproc[(thread/suspend-to-kill [thunk (-> any)]) thread?]{
|
||||||
|
|
||||||
Like @racket[thread], except that ``killing'' the thread through
|
Like @racket[thread], except that ``killing'' the thread through
|
||||||
@racket[kill-thread] or @racket[custodian-shutdown-all] merely
|
@racket[kill-thread] or @racket[custodian-shutdown-all] merely
|
||||||
|
|
Loading…
Reference in New Issue
Block a user