mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-19 23:22:16 +03:00
minor typo fixes (#9106)
This commit is contained in:
parent
877d44059e
commit
8731f63594
@ -33,7 +33,7 @@
|
|||||||
#include <utility>
|
#include <utility>
|
||||||
#include <type_traits>
|
#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
|
// but really has no body
|
||||||
class __FlashStringHelper;
|
class __FlashStringHelper;
|
||||||
#define FPSTR(pstr_pointer) (reinterpret_cast<const __FlashStringHelper *>(pstr_pointer))
|
#define FPSTR(pstr_pointer) (reinterpret_cast<const __FlashStringHelper *>(pstr_pointer))
|
||||||
@ -204,7 +204,7 @@ class String {
|
|||||||
bool concat(double num);
|
bool concat(double num);
|
||||||
|
|
||||||
// if there's not enough memory for the concatenated value, the string
|
// 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>
|
template <typename T>
|
||||||
String &operator +=(const T &rhs) {
|
String &operator +=(const T &rhs) {
|
||||||
concat(rhs);
|
concat(rhs);
|
||||||
@ -343,7 +343,7 @@ class String {
|
|||||||
char *wbuffer() { return const_cast<char *>(buffer()); } // Writable version of buffer
|
char *wbuffer() { return const_cast<char *>(buffer()); } // Writable version of buffer
|
||||||
|
|
||||||
// concatenation is done via non-member functions
|
// 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 +(const String &lhs, String &&rhs);
|
||||||
friend String operator +(String &&lhs, String &&rhs);
|
friend String operator +(String &&lhs, String &&rhs);
|
||||||
friend String operator +(char lhs, String &&rhs);
|
friend String operator +(char lhs, String &&rhs);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user