From cddb41f63321fba890b713e555fbdf93d8b47335 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Thu, 30 May 2024 06:38:40 -0700 Subject: [PATCH] Fix markdown --- doc/syntax.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/doc/syntax.md b/doc/syntax.md index 279442b5..d549d2d8 100644 --- a/doc/syntax.md +++ b/doc/syntax.md @@ -1,7 +1,7 @@ # Format String Syntax -[Formatting functions](api.md) such as `fmt::format` and `fmt::print` use the same -format string syntax described in this section. +[Formatting functions](api.md) such as `fmt::format` and `fmt::print` use the +same format string syntax described in this section. Format strings contain "replacement fields" surrounded by curly braces `{}`. Anything that is not contained in braces is considered literal text, which is @@ -27,12 +27,12 @@ output instead of the replacement field. The *arg_id* is optionally followed by a *format_spec*, which is preceded by a colon `':'`. These specify a non-default format for the replacement value. -See also the [Format Specification Mini-Language -](#format-specification-mini-language) section. +See also the [Format Specification +Mini-Language](#format-specification-mini-language) section. -If the numerical arg_ids in a format string are 0, 1, 2, \... in +If the numerical arg_ids in a format string are 0, 1, 2, ... in sequence, they can all be omitted (not just some) and the numbers 0, 1, -2, \... will be automatically inserted in that order. +2, ... will be automatically inserted in that order. Named arguments can be referred to by their names or indices.