mirror of
https://github.com/google/styleguide.git
synced 2024-03-22 13:11:43 +08: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:
parent
6c8669edb2
commit
2fb66df7d3
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user