Fix length typo (#5189)

This commit is contained in:
Ato Araki 2021-05-18 20:01:20 +09:00 committed by GitHub
parent de66c39f04
commit a1d8b959b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -555,7 +555,7 @@ unsigned char String::equalsConstantTime(const String &s2) const {
//at this point lengths are the same
if(len() == 0)
return 1;
//at this point lenghts are the same and non-zero
//at this point lengths are the same and non-zero
const char *p1 = buffer();
const char *p2 = s2.buffer();
unsigned int equalchars = 0;

View File

@ -56,7 +56,7 @@ void loop() {
// file found at server
if(httpCode == HTTP_CODE_OK) {
// get lenght of document (is -1 when Server sends no Content-Length header)
// get length of document (is -1 when Server sends no Content-Length header)
int len = http.getSize();
// create buffer for read