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."
```
This commit is contained in:
Alexander Artemenko 2017-07-30 21:28:02 +03:00 committed by GitHub
parent 6c8669edb2
commit 2fb66df7d3

View File

@ -3256,7 +3256,7 @@ Robert Brown
as the number to choose a clause. as the number to choose a clause.
The same as no parameters in all other ways. The same as no parameters in all other ways.
Here's the full hairy example: Here's the full hairy example:
<code>"Items:~#[ none~; ~S~; ~S and ~S~:;~@{~#[~; and~] ~S~^ ,~}~]."</code> <code>"Items: ~#[ none~; ~S~; ~S and ~S~:;~@{~S~^~#[~; and ~:;, ~]~}~]."</code>
</dd> </dd>
</dl> </dl>
</BODY> </BODY>