Skip to content

Commit d288628

Browse files
committed
Fix semantic error parsing formating parameter positions
Not an actual bug from this error, just visually confusing.
1 parent a68f31d commit d288628

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fly/types/string/detail/string_formatter_types.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -921,12 +921,12 @@ BasicFormatString<StringType, ParameterTypes...>::parse_position(FormatSpecifier
921921
if (auto position = m_lexer.consume_number(); position)
922922
{
923923
specifier.m_position = position.value();
924-
m_expect_no_positions_specified = true;
924+
m_expect_all_positions_specified = true;
925925
}
926926
else
927927
{
928928
specifier.m_position = m_next_position++;
929-
m_expect_all_positions_specified = true;
929+
m_expect_no_positions_specified = true;
930930
}
931931
}
932932

0 commit comments

Comments
 (0)