From 2fb66df7d3952b335918c1f9e4bf7837a3b0eb9e Mon Sep 17 00:00:00 2001 From: Alexander Artemenko Date: Sun, 30 Jul 2017 21:28:02 +0300 Subject: [PATCH] Fixed "full hairy example" of formatting control string Example produced wrong results: ``` CL-USER> (format nil "Items:~#[ none~; ~S~; ~S and ~S~:;~@{~#[~; and~] ~S~^ ,~}~]." :foo :bar :baz :kadabr) "Items: :FOO , :BAR , :BAZ , and :KADABR." ``` With this fix, it uses commas correctly: ``` CL-USER> (format nil "Items: ~#[ none~; ~S~; ~S and ~S~:;~@{~S~^~#[~; and ~:;, ~]~}~]." :foo :bar :baz :kadabr) "Items: :FOO, :BAR, :BAZ and :KADABR." ``` --- lispguide.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lispguide.xml b/lispguide.xml index 4a06b457e..69e31eea3 100644 --- a/lispguide.xml +++ b/lispguide.xml @@ -3256,7 +3256,7 @@ Robert Brown as the number to choose a clause. The same as no parameters in all other ways. Here's the full hairy example: - "Items:~#[ none~; ~S~; ~S and ~S~:;~@{~#[~; and~] ~S~^ ,~}~]." + "Items: ~#[ none~; ~S~; ~S and ~S~:;~@{~S~^~#[~; and ~:;, ~]~}~]."