8000 Merge pull request #4613 from adouglass/patch-1 · arduino/arduino-examples@e9a277e · GitHub
[go: up one dir, main page]

Skip to content

Commit e9a277e

Browse files
authored
Merge pull request #4613 from adouglass/patch-1
Fix tutorial typos in 08.Strings/StringAdditionOperator/StringAdditionOperator
2 parents 98592d4 + f321d0c commit e9a277e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/08.Strings/StringAdditionOperator/StringAdditionOperator.ino

Lines changed: 3 additions & 3 deletions
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)
0