1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-20 11:40:18 +02:00

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.
This commit is contained in:
Mark H Weaver 2012-01-04 13:43:47 -05:00
parent 34a1045f7d
commit 4dbd29a9b8

View file

@ -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"