From 24e226a5405a47f552d6802581362b6ba3dcfb5a Mon Sep 17 00:00:00 2001 From: Matthew Flatt Date: Mon, 13 Jul 2020 11:28:03 -0600 Subject: [PATCH] inside: fix typos in CS API --- .../scribblings/inside/cs-values.scrbl | 18 +++++++++--------- pkgs/racket-doc/scribblings/inside/utils.rkt | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/pkgs/racket-doc/scribblings/inside/cs-values.scrbl b/pkgs/racket-doc/scribblings/inside/cs-values.scrbl index 7a1dddf409..96dbf20d7e 100644 --- a/pkgs/racket-doc/scribblings/inside/cs-values.scrbl +++ b/pkgs/racket-doc/scribblings/inside/cs-values.scrbl @@ -172,15 +172,15 @@ In the case of @cppi{Sstring_utf8}, @var{str} is decoded as UTF-8, otherwise it is decided as Latin-1.} -@function[(uptr string_length [ptr str])]{ +@function[(uptr Sstring_length [ptr str])]{ Returns the length of the string @var{str}.} -@function[(ptr Sstring_ref [ptr str] [i uptr])]{ +@function[(ptr Sstring_ref [ptr str] [uptr i])]{ Returns the @var{i}th Racket character of the string @var{str}.} -@function[(int Sstring_set [ptr str] [i uptr] [ptr ch])]{ +@function[(int Sstring_set [ptr str] [uptr i] [ptr ch])]{ Installs @var{ch} as the @var{i}th Racket character of the string @var{str}.} @@ -197,12 +197,12 @@ Allocates a fresh mutable @tech[#:doc reference-doc]{vector} of length Returns the length of the vector @var{vec}.} -@function[(uptr Svector_ref [ptr vec] [i uptr])]{ +@function[(ptr Svector_ref [ptr vec] [uptr i])]{ Returns the @var{i}th element of the vector @var{vec}.} -@function[(void Svector_set [ptr vec] [i uptr] [ptr v])]{ +@function[(void Svector_set [ptr vec] [uptr i] [ptr v])]{ Installs @var{v} as the @var{i}th element of the vector @var{vec}.} @@ -218,12 +218,12 @@ length @var{len} and with @var{v} initially in every slot.} Returns the length of the fxvector @var{vec}.} -@function[(uptr Sfxvector_ref [ptr vec] [i uptr])]{ +@function[(iptr Sfxvector_ref [ptr vec] [uptr i])]{ Returns the @var{i}th fixnum of the fxvector @var{vec}.} -@function[(void Sfxvector_set [ptr vec] [i uptr] [ptr v])]{ +@function[(void Sfxvector_set [ptr vec] [uptr i] [ptr v])]{ Installs the fixnum @var{v} as the @var{i}th element of the fxvector @var{vec}.} @@ -239,11 +239,11 @@ length @var{len} and with @var{byte} initially in every slot.} Returns the length of the byte string @var{bstr}.} -@function[(int Sbytevector_u8_ref [ptr bstr] [i uptr])]{ +@function[(int Sbytevector_u8_ref [ptr bstr] [uptr i])]{ Returns the @var{i}th byte of the byte string @var{bstr}.} -@function[(int Sbytevector_u8_set [ptr bstr] [i uptr] [int byte])]{ +@function[(int Sbytevector_u8_set [ptr bstr] [uptr i] [int byte])]{ Installs @var{byte} as the @var{i}th byte of the byte string @var{bstr}.} diff --git a/pkgs/racket-doc/scribblings/inside/utils.rkt b/pkgs/racket-doc/scribblings/inside/utils.rkt index 6ced0e7ca8..7a7235f045 100644 --- a/pkgs/racket-doc/scribblings/inside/utils.rkt +++ b/pkgs/racket-doc/scribblings/inside/utils.rkt @@ -24,7 +24,7 @@ (define-syntax (function stx) (syntax-case stx () [(_ (ret name [type arg] ...) . body) - #'(*function (cpp/sym 'ret) + #'(*function (type/sym 'ret) (as-cpp-defn 'name (cpp/sym 'name)) (list (type/sym 'type) ...) (list (var/sym 'arg) ...)