Skip to content

Commit

Permalink
Fixup fmt documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
9999years committed Feb 8, 2024
1 parent 89001e1 commit 18e8f4f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/libutil/fmt.hh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace {
* These are equivalent:
*
* formatHelper(formatter, a_0, ..., a_n)
* formatter % a_0 % ... % ... a_n
* formatter % a_0 % ... % a_n
*
* With a single argument, `formatHelper(s)` is a no-op.
*/
Expand All @@ -34,10 +34,10 @@ inline void formatHelper(F & f, const T & x, const Args & ... args)
/**
* A helper for writing a `boost::format` expression to a string.
*
* These are equivalent:
* These are (roughly) equivalent:
*
* formatHelper(formatter, a_0, ..., a_n)
* formatter % a_0 % ... % ... a_n
* fmt(formatString, a_0, ..., a_n)
* (boost::format(formatString) % a_0 % ... % a_n).str()
*
* However, when called with a single argument, the string is returned
* unchanged.
Expand Down

0 comments on commit 18e8f4f

Please sign in to comment.