Skip to content

Commit d660dcb

Browse files
committed
formatting
1 parent 3611417 commit d660dcb

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

libc/src/__support/wchar/wcsnrtombs.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,9 @@
2222
namespace LIBC_NAMESPACE_DECL {
2323
namespace internal {
2424

25-
LIBC_INLINE static ErrorOr<size_t> wcsnrtombs(char *__restrict dest,
26-
const wchar_t **__restrict ptr_to_src,
27-
size_t num_src_widechars, size_t dest_len,
28-
mbstate *ps) {
25+
LIBC_INLINE static ErrorOr<size_t>
26+
wcsnrtombs(char *__restrict dest, const wchar_t **__restrict ptr_to_src,
27+
size_t num_src_widechars, size_t dest_len, mbstate *ps) {
2928
LIBC_CRASH_ON_NULLPTR(ptr_to_src);
3029
LIBC_CRASH_ON_NULLPTR(ps);
3130

@@ -36,8 +35,9 @@ LIBC_INLINE static ErrorOr<size_t> wcsnrtombs(char *__restrict dest,
3635
if (dest == nullptr)
3736
dest_len = SIZE_MAX;
3837

39-
StringConverter<char32_t> str_conv(reinterpret_cast<const char32_t *>(*ptr_to_src),
40-
ps, dest_len, num_src_widechars);
38+
StringConverter<char32_t> str_conv(
39+
reinterpret_cast<const char32_t *>(*ptr_to_src), ps, dest_len,
40+
num_src_widechars);
4141
size_t dst_idx = 0;
4242
ErrorOr<char8_t> converted = str_conv.popUTF8();
4343
while (converted.has_value()) {

0 commit comments

Comments
 (0)