@@ -2125,7 +2125,7 @@ FMT_CONSTEXPR auto write(OutputIt out, basic_string_view<Char> s,
21252125 size_t display_width_limit =
21262126 specs.precision < 0 ? SIZE_MAX : to_unsigned (specs.precision );
21272127 size_t display_width =
2128- !is_debug || specs.precision == 0 ? 0 : 1 ; // Account for opening "
2128+ !is_debug || specs.precision == 0 ? 0 : 1 ; // Account for opening '"'.
21292129 size_t size = !is_debug || specs.precision == 0 ? 0 : 1 ;
21302130 for_each_codepoint (s, [&](uint32_t cp, string_view sv) {
21312131 if (is_debug && needs_escape (cp)) {
@@ -2138,7 +2138,7 @@ FMT_CONSTEXPR auto write(OutputIt out, basic_string_view<Char> s,
21382138 if (display_width + cp_width <= display_width_limit) {
21392139 display_width += cp_width;
21402140 size += cp_width;
2141- // If this is the end of the string, account for closing "
2141+ // If this is the end of the string, account for closing '"'.
21422142 if (display_width < display_width_limit && sv.end () == s.end ()) {
21432143 ++display_width;
21442144 ++size;
@@ -2155,7 +2155,7 @@ FMT_CONSTEXPR auto write(OutputIt out, basic_string_view<Char> s,
21552155 if (cp_width + display_width <= display_width_limit) {
21562156 display_width += cp_width;
21572157 size += sv.size ();
2158- // If this is the end of the string, account for closing "
2158+ // If this is the end of the string, account for closing '"'.
21592159 if (is_debug && display_width < display_width_limit &&
21602160 sv.end () == s.end ()) {
21612161 ++display_width;
@@ -2188,7 +2188,7 @@ FMT_CONSTEXPR auto write(OutputIt out, basic_string_view<Char> s,
21882188 };
21892189
21902190 return write_padded<char >(
2191- out, specs, size, display_width, [& ](reserve_iterator<OutputIt> it) {
2191+ out, specs, size, display_width, [= ](reserve_iterator<OutputIt> it) {
21922192 return is_debug
21932193 ? write_escaped_string (bounded_output_iterator{it, size}, s)
21942194 .underlying_iterator
@@ -2213,7 +2213,7 @@ FMT_CONSTEXPR auto write(OutputIt out, basic_string_view<Char> s,
22132213 }
22142214
22152215 return write_padded<Char>(
2216- out, specs, size, [& ](reserve_iterator<OutputIt> it) {
2216+ out, specs, size, [= ](reserve_iterator<OutputIt> it) {
22172217 return is_debug ? write_escaped_string (it, s)
22182218 : copy<Char>(data, data + size, it);
22192219 });
0 commit comments