Skip to content

Commit

Permalink
minor typo fixes (#9106)
Browse files Browse the repository at this point in the history
  • Loading branch information
DRSDavidSoft authored Mar 24, 2024
1 parent 877d440 commit 8731f63
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cores/esp8266/WString.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#include <utility>
#include <type_traits>

// an abstract class used as a means to proide a unique pointer type
// an abstract class used as a means to provide a unique pointer type
// but really has no body
class __FlashStringHelper;
#define FPSTR(pstr_pointer) (reinterpret_cast<const __FlashStringHelper *>(pstr_pointer))
Expand Down Expand Up @@ -204,7 +204,7 @@ class String {
bool concat(double num);

// if there's not enough memory for the concatenated value, the string
// will be left unchanged (but this isn't signalled in any way)
// will be left unchanged (but this isn't signaled in any way)
template <typename T>
String &operator +=(const T &rhs) {
concat(rhs);
Expand Down Expand Up @@ -343,7 +343,7 @@ class String {
char *wbuffer() { return const_cast<char *>(buffer()); } // Writable version of buffer

// concatenation is done via non-member functions
// make sure we still have access to internal methods, since we optimize based on capacity of both sides and want to manipulate internal buffers directly
// make sure we still have access to internal methods, since we optimize based on the capacity of both sides and want to manipulate internal buffers directly
friend String operator +(const String &lhs, String &&rhs);
friend String operator +(String &&lhs, String &&rhs);
friend String operator +(char lhs, String &&rhs);
Expand Down

0 comments on commit 8731f63

Please sign in to comment.