1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-04-30 11:50:28 +02:00

Fix typos in SRFI docs

https://debbugs.gnu.org/cgi/bugreport.cgi?bug=50127

* doc/ref/api-foreign.texi, doc/ref/srfi-modules.texi: Fix typos.
This commit is contained in:
Arun Isaac 2021-08-20 01:48:47 +05:30 committed by Daniel Llorens
parent ab9c0c9ca7
commit c5f443de79
2 changed files with 17 additions and 17 deletions

View file

@ -606,7 +606,7 @@ Mutating the returned bytevector mutates the memory pointed to by
@deffn {Scheme Procedure} bytevector->pointer bv [offset] @deffn {Scheme Procedure} bytevector->pointer bv [offset]
@deffnx {C Function} scm_bytevector_to_pointer (bv, offset) @deffnx {C Function} scm_bytevector_to_pointer (bv, offset)
Return a pointer pointer aliasing the memory pointed to by @var{bv} or Return a pointer aliasing the memory pointed to by @var{bv} or
@var{offset} bytes after @var{bv} when @var{offset} is passed. @var{offset} bytes after @var{bv} when @var{offset} is passed.
@end deffn @end deffn

View file

@ -5662,7 +5662,7 @@ since combining N of them builds @code{(- N 1)} intermediate lists.
Transducers are oblivious to what kind of process they are used in, and Transducers are oblivious to what kind of process they are used in, and
are composable without building intermediate collections. This means we are composable without building intermediate collections. This means we
can create a transducer that squares all even numbers: can create a transducer that squares all odd numbers:
@example @example
(compose (tfilter odd?) (tmap (lambda (x) (* x x)))) (compose (tfilter odd?) (tmap (lambda (x) (* x x))))
@ -5735,7 +5735,7 @@ reducer with result-so-far and the maybe-transformed input.
A simple example is as following: A simple example is as following:
@example @example
(list-transduce (tfilter odd?)+ '(1 2 3 4 5)). (list-transduce (tfilter odd?) + '(1 2 3 4 5)).
@end example @end example
This first returns a transducer filtering all odd This first returns a transducer filtering all odd
@ -5809,12 +5809,12 @@ and SRFI-158-styled generators respectively.
@deffnx {Scheme Procedure} port-transduce xform f reader port @deffnx {Scheme Procedure} port-transduce xform f reader port
@deffnx {Scheme Procedure} port-transduce xform f identity reader port @deffnx {Scheme Procedure} port-transduce xform f identity reader port
Same as @code{list-reduce} but for ports. Called without a port, it Same as @code{list-transduce} but for ports. Called without a port, it
reduces over the results of applying @var{reader} until the reduces over the results of applying @var{reader} until the EOF-object
EOF-object is returned, presumably to read from is returned, presumably to read from @code{current-input-port}. With a
@code{current-input-port}. With a port @var{reader} is applied to port @var{reader} is applied to @var{port} instead of without any
@var{port} instead of without any arguments. If @var{identity} is arguments. If @var{identity} is provided, that is used as the initial
provided, that is used as the initial identity in the reduction. identity in the reduction.
@end deffn @end deffn
@ -5890,7 +5890,7 @@ transduction.
Returns a transducer that applies @var{proc} to all values. Stateless. Returns a transducer that applies @var{proc} to all values. Stateless.
@end deffn @end deffn
@deffn tfilter pred? @deffn {Scheme Procedure} tfilter pred?
Returns a transducer that removes values for which @var{pred?} returns #f. Returns a transducer that removes values for which @var{pred?} returns #f.
Stateless. Stateless.
@ -5935,7 +5935,7 @@ Stateful.
@deffn {Scheme Procedure} tdrop-while pred? @deffn {Scheme Procedure} tdrop-while pred?
Returns a transducer that discards the the first values for which Returns a transducer that discards the first values for which
@var{pred?} returns true. @var{pred?} returns true.
Stateful. Stateful.
@ -5995,9 +5995,9 @@ Stateful.
@end deffn @end deffn
@deffn {Scheme Procedure} tsegment n @deffn {Scheme Procedure} tsegment n
Returns a transducer that groups @var{n} inputs in lists of @var{n} Returns a transducer that groups inputs into lists of @var{n} elements.
elements. When the transduction stops, it flushes any remaining When the transduction stops, it flushes any remaining collection, even
collection, even if it contains fewer than @var{n} elements. if it contains fewer than @var{n} elements.
Stateful. Stateful.
@end deffn @end deffn
@ -6126,13 +6126,13 @@ The bytevector-u8 version of list-reduce.
@end deffn @end deffn
@deffn {Scheme Procedure} port-reduce f identity reader port @deffn {Scheme Procedure} port-reduce f identity reader port
The port version of list-reducer. It reduces over port using reader The port version of list-reduce. It reduces over port using reader
until reader returns the EOF object. until reader returns the EOF object.
@end deffn @end deffn
@deffn {Scheme Procedure} generator-reduce f identity gen @deffn {Scheme Procedure} generator-reduce f identity gen
The port version of list-reduce. It reduces over @code{gen} until it The generator version of list-reduce. It reduces over @code{gen} until
returns the EOF object it returns the EOF object
@end deffn @end deffn
@c srfi-modules.texi ends here @c srfi-modules.texi ends here