mirror of
https://github.com/tiennm99/styleguide.git
synced 2026-10-13 16:15:27 +00:00
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:
1 parent
6c8669edb2
commit
2fb66df7d3
1 file changed
+1
-1
+1
-1
@@ -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:
|
||||
<code>"Items:~#[ none~; ~S~; ~S and ~S~:;~@{~#[~; and~] ~S~^ ,~}~]."</code>
|
||||
<code>"Items: ~#[ none~; ~S~; ~S and ~S~:;~@{~S~^~#[~; and ~:;, ~]~}~]."</code>
|
||||
</dd>
|
||||
</dl>
|
||||
</BODY>
|
||||
|
||||
Reference in new issue
Block a user