From 9a14b47ccc8ad3f0328ef3fab3f61a0358c40cc1 Mon Sep 17 00:00:00 2001 From: Matthew Flatt Date: Tue, 2 Aug 2011 17:15:23 -0600 Subject: [PATCH] doc typo Closes PR 12006 --- collects/scribblings/foreign/cpointer.scrbl | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/collects/scribblings/foreign/cpointer.scrbl b/collects/scribblings/foreign/cpointer.scrbl index 00e0e7c2d5..32b7386aa4 100644 --- a/collects/scribblings/foreign/cpointer.scrbl +++ b/collects/scribblings/foreign/cpointer.scrbl @@ -7,12 +7,12 @@ The unsafe @racket[cpointer-has-tag?] and @racket[cpointer-push-tag!] operations manage tags to distinguish pointer types. @defproc*[([(_cpointer [tag any/c] - [ptr-type ctype? _xpointer] + [ptr-type ctype? _pointer] [scheme-to-c (any/c . -> . any/c) values] [c-to-scheme (any/c . -> . any/c) values]) ctype] [(_cpointer/null [tag any/c] - [ptr-type ctype? _xpointer] + [ptr-type ctype? _pointer] [scheme-to-c (any/c . -> . any/c) values] [c-to-scheme (any/c . -> . any/c) values]) ctype])]{ @@ -42,14 +42,15 @@ are not tagged.} @defform*[[(define-cpointer-type _id) - (define-cpointer-type _id scheme-to-c-expr) - (define-cpointer-type _id scheme-to-c-expr c-to-scheme-expr)]]{ + (define-cpointer-type _id ptr-type-expr) + (define-cpointer-type _id ptr-type-expr + scheme-to-c-expr c-to-scheme-expr)]]{ A macro version of @racket[_cpointer] and @racket[_cpointer/null], using the defined name for a tag string, and defining a predicate too. The @racket[_id] must start with @litchar{_}. -The optional expression produces optional arguments to @racket[_cpointer]. +The optional expressions produce optional arguments to @racket[_cpointer]. In addition to defining @racket[_id] to a type generated by @racket[_cpointer], @racket[_id]@racketidfont{/null} is bound to a