From 8aa335898e41c457f1c1712cf5d769d5ebbdea96 Mon Sep 17 00:00:00 2001 From: Ato Araki Date: Mon, 17 May 2021 22:40:11 +0900 Subject: [PATCH] Fix length typo --- cores/esp32/WString.cpp | 2 +- .../HTTPClient/examples/StreamHttpClient/StreamHttpClient.ino | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cores/esp32/WString.cpp b/cores/esp32/WString.cpp index ab01cc716ca..c05b2b13df0 100644 --- a/cores/esp32/WString.cpp +++ b/cores/esp32/WString.cpp @@ -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; diff --git a/libraries/HTTPClient/examples/StreamHttpClient/StreamHttpClient.ino b/libraries/HTTPClient/examples/StreamHttpClient/StreamHttpClient.ino index 6ea07f660c1..a0d681b2c1d 100644 --- a/libraries/HTTPClient/examples/StreamHttpClient/StreamHttpClient.ino +++ b/libraries/HTTPClient/examples/StreamHttpClient/StreamHttpClient.ino @@ -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