Skip to content

Commit 3559e7a

Browse files
formatting cleanup prior to landing
1 parent 40b454d commit 3559e7a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

libc/docs/dev/printf_behavior.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ These compile-time flags will change the behavior of LLVM-libc's printf when it
3131
is compiled. Combinations of flags that are incompatible will be marked.
3232

3333
LIBC_COPT_STDIO_USE_SYSTEM_FILE
34-
--------------------------------
34+
-------------------------------
3535
When set, this flag changes fprintf and printf to use the FILE API from the
3636
system's libc, instead of LLVM-libc's internal FILE API. This is set by default
3737
when LLVM-libc is built in overlay mode.

libc/src/stdio/scanf_core/vfscanf_internal.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ LIBC_INLINE int getc(void *f) {
2626
unsigned char c;
2727
auto result = reinterpret_cast<__llvm_libc::File *>(f)->read_unlocked(&c, 1);
2828
size_t r = result.value;
29-
if (result.has_error() || r != 1) {
29+
if (result.has_error() || r != 1)
3030
return '\0';
31-
}
31+
3232
return c;
3333
}
3434

@@ -61,9 +61,9 @@ LIBC_INLINE int vfscanf_internal(::FILE *__restrict stream,
6161
internal::ArgList &args) {
6262
scanf_core::Reader reader(stream, &internal::getc, internal::ungetc);
6363
int retval = scanf_core::scanf_main(&reader, format, args);
64-
if (retval == 0 && internal::ferror_unlocked(stream)) {
64+
if (retval == 0 && internal::ferror_unlocked(stream))
6565
return EOF;
66-
}
66+
6767
return retval;
6868
}
6969
} // namespace scanf_core

0 commit comments

Comments
 (0)