mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-30 16:24:09 +03:00
Corrected comments in String examples.
This commit is contained in:
@ -15,7 +15,7 @@ void setup() {
|
|||||||
Serial.begin(9600);
|
Serial.begin(9600);
|
||||||
stringOne = String("this");
|
stringOne = String("this");
|
||||||
stringTwo = String("that");
|
stringTwo = String("that");
|
||||||
Serial.println("\n\nAdding strings together (concatenation):");
|
Serial.println("\n\nComparing Strings:");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@ void setup() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void loop() {
|
void loop() {
|
||||||
// startsWith() checks to see if a String starts with a particular substring:
|
// Set up a String:
|
||||||
String stringOne = "Content-Type: text/html";
|
String stringOne = "Content-Type: text/html";
|
||||||
Serial.println(stringOne);
|
Serial.println(stringOne);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user