mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-20 03:30:27 +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:
parent
34a1045f7d
commit
4dbd29a9b8
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue