diff --git a/doc/syntax.md b/doc/syntax.md index eae72a3b..88e45cc3 100644 --- a/doc/syntax.md +++ b/doc/syntax.md @@ -669,11 +669,9 @@ fmt::print("{:n:f}", std::array{std::numbers::pi, std::numbers::e}); // Output: 3.141593, 2.718282 ``` - -## Examples +## A Combined Example -Most of the format options are introduced alongside their grammar in the -sections above. The example below combines several of them — nested +The example below ties together several elements introduced above — nested replacement fields, fill characters, and centering — to draw a fixed-width box around a message: