Skip to content

Commit a1d8b95

Browse files
authored
Fix length typo (espressif#5189)
1 parent de66c39 commit a1d8b95

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cores/esp32/WString.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ unsigned char String::equalsConstantTime(const String &s2) const {
555555
//at this point lengths are the same
556556
if(len() == 0)
557557
return 1;
558-
//at this point lenghts are the same and non-zero
558+
//at this point lengths are the same and non-zero
559559
const char *p1 = buffer();
560560
const char *p2 = s2.buffer();
561561
unsigned int equalchars = 0;

libraries/HTTPClient/examples/StreamHttpClient/StreamHttpClient.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ void loop() {
5656
// file found at server
5757
if(httpCode == HTTP_CODE_OK) {
5858

59-
// get lenght of document (is -1 when Server sends no Content-Length header)
59+
// get length of document (is -1 when Server sends no Content-Length header)
6060
int len = http.getSize();
6161

6262
// create buffer for read

0 commit comments

Comments
 (0)