mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-20 14:54:31 +01:00
Fix tutorial typos
This commit is contained in:
parent
08ae7bd3eb
commit
f0e3ec56a3
@ -23,7 +23,7 @@ void setup() {
|
||||
; // wait for serial port to connect. Needed for native USB port only
|
||||
}
|
||||
|
||||
stringOne = String("stringThree = ");
|
||||
stringOne = String("You added ");
|
||||
stringTwo = String("this string");
|
||||
stringThree = String();
|
||||
// send an intro:
|
||||
@ -34,11 +34,11 @@ void setup() {
|
||||
void loop() {
|
||||
// adding a constant integer to a string:
|
||||
stringThree = stringOne + 123;
|
||||
Serial.println(stringThree); // prints "stringThree = 123"
|
||||
Serial.println(stringThree); // prints "You added 123"
|
||||
|
||||
// adding a constant long interger to a string:
|
||||
stringThree = stringOne + 123456789;
|
||||
Serial.println(stringThree); // prints " You added 123456789"
|
||||
Serial.println(stringThree); // prints "You added 123456789"
|
||||
|
||||
// adding a constant character to a string:
|
||||
stringThree = stringOne + 'A';
|
||||
|
Loading…
x
Reference in New Issue
Block a user