added some more format examples; Closes PR 9879

This commit is contained in:
Matthias Felleisen 2012-07-04 11:42:14 -04:00
parent 89d6ebaab6
commit 983afd5355

View File

@ -832,7 +832,11 @@
}
@defproc[(format [f string] [x any/c] ...) string]{
Formats a string, possibly embedding values.
@interaction[#:eval (bsl) (format "Dear Dr. ~a:" "Flatt") (format "the value of ~s is ~a" '(+ 1 1) 2)]
@interaction[#:eval (bsl)
(format "Dear Dr. ~a:" "Flatt")
(format "Dear Dr. ~s:" "Flatt")
(format "the value of ~s is ~a" '(+ 1 1) (+ 1 1))
]
})
("Images"