Update bootloader/itoa.cpp

Co-authored-by: Lauryy06 <80424145+Lauryy06@users.noreply.github.com>
This commit is contained in:
devdl11
2022-04-08 13:17:04 +02:00
committed by GitHub
parent 3328bc28b9
commit 8db051474c

View File

@@ -10,8 +10,7 @@ void swap(char *x, char *y) {
}
// Function to reverse `buffer[i…j]`
char* reverse(char *buffer, int i, int j)
{
char* reverse(char *buffer, int i, int j) {
while (i < j) {
swap(&buffer[i++], &buffer[j--]);
}