Fixed typo: 'lenght' in minimal-printf

Note that the word 'lenght' is wrong,
so that 'lenght' should been replaced with 'length'.
pull/12442/head
David Lin 2020-02-16 18:11:18 +08:00 committed by GitHub
parent 3d038e55ee
commit d725b13906
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;