Skip to content

Commit e719c43

Browse files
committed
Apply coding conventions
1 parent 8a8ff61 commit e719c43

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

include/fmt/format.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1312,10 +1312,11 @@ template <typename WChar, typename Buffer = memory_buffer> class to_utf8 {
13121312
explicit to_utf8(basic_string_view<WChar> s,
13131313
to_utf8_error_policy policy = to_utf8_error_policy::abort) {
13141314
static_assert(sizeof(WChar) == 2 || sizeof(WChar) == 4,
1315-
"Expect utf16 or utf32");
1316-
if (!convert(s, policy))
1315+
"expected utf16 or utf32");
1316+
if (!convert(s, policy)) {
13171317
FMT_THROW(std::runtime_error(sizeof(WChar) == 2 ? "invalid utf16"
13181318
: "invalid utf32"));
1319+
}
13191320
}
13201321
operator string_view() const { return string_view(&buffer_[0], size()); }
13211322
auto size() const -> size_t { return buffer_.size() - 1; }

0 commit comments

Comments
 (0)