Skip to content

Commit

Permalink
Fix length typo (#5189)
Browse files Browse the repository at this point in the history
  • Loading branch information
atotto committed May 18, 2021
1 parent de66c39 commit a1d8b95
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cores/esp32/WString.cpp
Expand Up @@ -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;
Expand Down
Expand Up @@ -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
Expand Down

0 comments on commit a1d8b95

Please sign in to comment.