Skip to content

Commit f0e3ec5

Browse files
committed
Fix tutorial typos
1 parent 08ae7bd commit f0e3ec5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

build/shared/examples/08.Strings/StringAdditionOperator/StringAdditionOperator.ino

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ void setup() {
2323
; // wait for serial port to connect. Needed for native USB port only
2424
}
2525

26-
stringOne = String("stringThree = ");
26+
stringOne = String("You added ");
2727
stringTwo = String("this string");
2828
stringThree = String();
2929
// send an intro:
@@ -34,11 +34,11 @@ void setup() {
3434
void loop() {
3535
// adding a constant integer to a string:
3636
stringThree = stringOne + 123;
37-
Serial.println(stringThree); // prints "stringThree = 123"
37+
Serial.println(stringThree); // prints "You added 123"
3838

3939
// adding a constant long interger to a string:
4040
stringThree = stringOne + 123456789;
41-
Serial.println(stringThree); // prints " You added 123456789"
41+
Serial.println(stringThree); // prints "You added 123456789"
4242

4343
// adding a constant character to a string:
4444
stringThree = stringOne + 'A';

0 commit comments

Comments
 (0)