From 2a5f8408d1ead0a80b010df2d017ab5a33cedb78 Mon Sep 17 00:00:00 2001 From: Matthew Flatt Date: Wed, 20 Jun 2018 18:08:17 -0600 Subject: [PATCH] ffi/unsafe docs: clarify allocation by `(_ptr o ...)` Closes #1827 --- pkgs/racket-doc/scribblings/foreign/types.scrbl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/racket-doc/scribblings/foreign/types.scrbl b/pkgs/racket-doc/scribblings/foreign/types.scrbl index 629291c33d..8d410d2d41 100644 --- a/pkgs/racket-doc/scribblings/foreign/types.scrbl +++ b/pkgs/racket-doc/scribblings/foreign/types.scrbl @@ -998,7 +998,8 @@ following: some value, and this value is accessible after the call, to be used by an extra return expression. If @racket[_ptr] is used in this mode, then the generated wrapper does not expect an argument since - one will be freshly allocated before the call.} + one will be freshly allocated before the call. The argument is + allocated using @racket[(malloc type-expr)].} @item{@racket[io] --- combines the above into an @italic{input/output} pointer argument: the wrapper gets the Racket