Merge pull request #12442 from DavidLin1577/patch-3

Fixed typo: 'lenght' in minimal-printf
pull/12473/head
Martin Kojtal 2020-02-19 14:31:28 +00:00 committed by GitHub
commit 92533ffec2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -508,7 +508,7 @@ int mbed_minimal_formatted_string(char *buffer, size_t length, const char *forma
value = va_arg(arguments, MBED_SIGNED_NATIVE_TYPE);
}
/* constrict value based on lenght modifier */
/* constrict value based on length modifier */
switch (length_modifier) {
case LENGTH_NONE:
value = (int) value;
@ -557,7 +557,7 @@ int mbed_minimal_formatted_string(char *buffer, size_t length, const char *forma
value = va_arg(arguments, MBED_UNSIGNED_NATIVE_TYPE);
}
/* constrict value based on lenght modifier */
/* constrict value based on length modifier */
switch (length_modifier) {
case LENGTH_NONE:
value = (unsigned int) value;