diff options
author | Mark H Weaver <mhw@netris.org> | 2012-01-04 13:43:47 -0500 |
---|---|---|
committer | Mark H Weaver <mhw@netris.org> | 2012-01-04 13:43:47 -0500 |
commit | 4dbd29a9b8ea272fde54dcb0e8f47e23961f65d2 (patch) | |
tree | 1f0c90eb6966304c3ac662f8125da6f647b67d20 | |
parent | 34a1045f7d60d733c259dc262682bbfb78fbd20e (diff) | |
download | guile-4dbd29a9b8ea272fde54dcb0e8f47e23961f65d2.tar.gz |
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.
-rw-r--r-- | doc/ref/api-data.texi | 2 |
1 files changed, 1 insertions, 1 deletions
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" |