Skip to content

Commit 2fb66df

Browse files
authored
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." ```
1 parent 6c8669e commit 2fb66df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lispguide.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3256,7 +3256,7 @@ Robert Brown
32563256
as the number to choose a clause.
32573257
The same as no parameters in all other ways.
32583258
Here's the full hairy example:
3259-
<code>"Items:~#[ none~; ~S~; ~S and ~S~:;~@{~#[~; and~] ~S~^ ,~}~]."</code>
3259+
<code>"Items: ~#[ none~; ~S~; ~S and ~S~:;~@{~S~^~#[~; and ~:;, ~]~}~]."</code>
32603260
</dd>
32613261
</dl>
32623262
</BODY>

0 commit comments

Comments
 (0)