Skip to content

Commit 5cd4e8c

Browse files
committed
Change double quotes to single quotes
- "." is a string literal, and so is treated as the char '.' plus the null char '\0'. - Single quotes reduces the necessary memory for this literal to only one char instead. A string literal as the one actually present may require the use of the method "write(const char *str)", so there could be also a performance overhead. - Another reason to change quotes style is for consistency with line 235. Signed-off-by: Patrick Roncagliolo <[email protected]>
1 parent 5467214 commit 5cd4e8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/arduino/Print.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ size_t Print::printFloat(double number, uint8_t digits)
250250

251251
// Print the decimal point, but only if there are digits beyond
252252
if (digits > 0) {
253-
n += print(".");
253+
n += print('.');
254254
}
255255

256256
// Extract digits from the remainder one at a time

0 commit comments

Comments
 (0)