From e331ae75a6ccf8f082c799d9150fa86a3bcd35bd Mon Sep 17 00:00:00 2001 From: Royall Spence Date: Sun, 8 Jan 2017 21:39:53 -0500 Subject: [PATCH] Fix typo in struct section Change "must to be allocated" to "must be allocated" --- pkgs/racket-doc/scribblings/foreign/types.scrbl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/racket-doc/scribblings/foreign/types.scrbl b/pkgs/racket-doc/scribblings/foreign/types.scrbl index e02f20510b..5f0a06e381 100644 --- a/pkgs/racket-doc/scribblings/foreign/types.scrbl +++ b/pkgs/racket-doc/scribblings/foreign/types.scrbl @@ -1126,7 +1126,7 @@ members.} A type constructor that builds a struct type using @racket[make-cstruct-type] function and wraps it in a type that marshals a struct as a list of its components. Note that space for -structs must to be allocated using @racket[malloc] with @racket[malloc-mode]; the converter for a +structs must be allocated using @racket[malloc] with @racket[malloc-mode]; the converter for a @racket[_list-struct] type immediately allocates and uses a list from the allocated space, so it is inefficient. Use @racket[define-cstruct] below for a more efficient approach.