File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
build/shared/examples/08.Strings/StringAdditionOperator Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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() {
3434void 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' ;
You can’t perform that action at this time.
0 commit comments