From 4dbd29a9b8ea272fde54dcb0e8f47e23961f65d2 Mon Sep 17 00:00:00 2001 From: Mark H Weaver Date: Wed, 4 Jan 2012 13:43:47 -0500 Subject: [PATCH] Fix docs of string mutators to do so on a mutable string * doc/ref/api-data.texi (String Modification): Change (define y "abcdefg") => (define y (string-copy "abcdefg")) before mutating the string bound to y in the example code. --- doc/ref/api-data.texi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/ref/api-data.texi b/doc/ref/api-data.texi index 5017165c0..f2450cea2 100644 --- a/doc/ref/api-data.texi +++ b/doc/ref/api-data.texi @@ -3366,7 +3366,7 @@ Change every character in @var{str} between @var{start} and @var{end} to @var{fill}. @lisp -(define y "abcdefg") +(define y (string-copy "abcdefg")) (substring-fill! y 1 3 #\r) y @result{} "arrdefg"