summaryrefslogtreecommitdiff
path: root/libguile/vectors.c
diff options
context:
space:
mode:
authorDaniel Llorens <lloda@sarc.name>2021-10-21 15:05:46 +0200
committerDaniel Llorens <lloda@sarc.name>2021-10-21 15:05:46 +0200
commit6be51f9bbf47692ee5747b2cac6b372df65de970 (patch)
tree1c9c4fd6cfc65d64f320d32e91ed10e7ccd0ed57 /libguile/vectors.c
parentc85724bd0a72a11f8c28c844a200d624ce32958a (diff)
downloadguile-6be51f9bbf47692ee5747b2cac6b372df65de970.tar.gz
Provide xxvector-copy and xxvector-copy! for srfi-4 vectors
These use the argument conventions of vector-copy!, string-copy!, etc. and not that of bytevector-copy! (which is from r6rs). * module/srfi/srfi-4/gnu.scm: As stated. * test-suite/tests/srfi-4.test: Tests. * doc/ref/srfi-modules.texi: Documentation. * libguile/bytevectors.c (bytevector-copy!): Add overlap note to docstring. * libguile/vectors.c (vector-copy!): Reuse text for the overlap note.
Diffstat (limited to 'libguile/vectors.c')
-rw-r--r--libguile/vectors.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libguile/vectors.c b/libguile/vectors.c
index 8cbd201f5..18c7dc54d 100644
--- a/libguile/vectors.c
+++ b/libguile/vectors.c
@@ -331,9 +331,8 @@ SCM_DEFINE (scm_vector_copy_x, "vector-copy!", 3, 2, 0,
"It is an error for @var{dst} to have a length less than\n"
"@var{at} + (@var{end} - @var{start}). @var{at} and @var{start} default\n"
"to 0 and @var{end} defaults to the length of @var{src}.\n\n"
- "The order in which elements are copied is unspecified, except that if the\n"
- "source and destination overlap, copying takes place as if the source is\n"
- "first copied into a temporary vector and then into the destination.")
+ "If source and destination overlap, copying takes place as if the source\n"
+ "is first copied into a temporary vector and then into the destination.")
#define FUNC_NAME s_scm_vector_copy_x
{
SCM_VALIDATE_MUTABLE_VECTOR (1, dst);