A few minor typo fixes and documentation improvements follow. Arun Isaac (3): doc: Fix return value of do loop example. texinfo: Fix typo in transform-string docstring. doc: Improve documentation of make-shared-array. doc/ref/api-control.texi | 2 +- doc/ref/api-data.texi | 4 ++-- module/texinfo/string-utils.scm | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) -- 2.26.2
* doc/ref/api-control.texi (while do): Change return value of second do loop example from 789 to 243. --- doc/ref/api-control.texi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/ref/api-control.texi b/doc/ref/api-control.texi index 5df5344c5..9860457fa 100644 --- a/doc/ref/api-control.texi +++ b/doc/ref/api-control.texi @@ -323,7 +323,7 @@ Or with two variables and a final return value, 3**3 is 27 3**4 is 81 @result{} -789 +243 @end example The @var{variable} bindings are established like a @code{let}, in that -- 2.26.2
* module/texinfo/string-utils.scm (transform-string): Replace "te" with "the" in docstring. --- module/texinfo/string-utils.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/texinfo/string-utils.scm b/module/texinfo/string-utils.scm index 42074d334..8c81c20fc 100644 --- a/module/texinfo/string-utils.scm +++ b/module/texinfo/string-utils.scm @@ -54,8 +54,8 @@ character as an argument, and the returned value is sent to the output string via @samp{display}. If @var{replace} is anything else, it is sent through the output string via @samp{display}. -Note that te replacement for the matched characters does not need to -be a single character. That is what differentiates this function from +Note that the replacement for the matched characters does not need to be +a single character. That is what differentiates this function from @samp{string-map}, and what makes it useful for applications such as converting @samp{#\\&} to @samp{\"&\"} in web page text. Some other functions in this module are just wrappers around common uses of -- 2.26.2
* doc/ref/api-data.texi (Shared Arrays): Replace "either" with "either array" in make-shared-array documentation. --- doc/ref/api-data.texi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/ref/api-data.texi b/doc/ref/api-data.texi index ed14b2298..012c114e5 100644 --- a/doc/ref/api-data.texi +++ b/doc/ref/api-data.texi @@ -7575,8 +7575,8 @@ row-major order, but that might change in the future. Use @deffn {Scheme Procedure} make-shared-array oldarray mapfunc bound @dots{} @deffnx {C Function} scm_make_shared_array (oldarray, mapfunc, boundlist) -Return a new array which shares the storage of @var{oldarray}. -Changes made through either affect the same underlying storage. The +Return a new array which shares the storage of @var{oldarray}. Changes +made through either array affect the same underlying storage. The @var{bound} @dots{} arguments are the shape of the new array, the same as @code{make-array} (@pxref{Array Procedures}). -- 2.26.2